Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære 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

Oppgave

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Combine and Extract Text

Sveip for å vise menyen

Oppgave

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 desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

some-alt