Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Combine and Extract Text | String Manipulation and Cleaning
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Working with Text, Dates, and Files in R

bookChallenge: Combine and Extract Text

Uppgift

Swipe to start coding

You are preparing a contact list for a company directory. Your task is to combine first and last names into full names, and also extract the initials from a list of names.

  • Combine the corresponding elements of first_names and last_names into full names using a space as a separator.
  • Extract the first letter from each name in the names vector and combine them into a single string of initials.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Combine and Extract Text

Svep för att visa menyn

Uppgift

Swipe to start coding

You are preparing a contact list for a company directory. Your task is to combine first and last names into full names, and also extract the initials from a list of names.

  • Combine the corresponding elements of first_names and last_names into full names using a space as a separator.
  • Extract the first letter from each name in the names vector and combine them into a single string of initials.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 2
single

single

some-alt