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

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Combine and Extract Text

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 2
single

single

some-alt