Challenge: Functional Data Analysis
Task
Swipe to start coding
Pair up each element from the names and ages vectors, then filter out any pairs where the age is less than 18.
- Use
Mapto combinenamesandagesinto a list of pairs, where each pair contains a name and the corresponding age. - Use
Filterto keep only those pairs where the age is 18 or above.
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Functional Data Analysis
Swipe to show menu
Task
Swipe to start coding
Pair up each element from the names and ages vectors, then filter out any pairs where the age is less than 18.
- Use
Mapto combinenamesandagesinto a list of pairs, where each pair contains a name and the corresponding age. - Use
Filterto keep only those pairs where the age is 18 or above.
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 6
single