Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Functional Data Analysis | Functional Programming in Practice
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions and Functional Programming in R

bookChallenge: 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 Map to combine names and ages into a list of pairs, where each pair contains a name and the corresponding age.
  • Use Filter to keep only those pairs where the age is 18 or above.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 6
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: 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 Map to combine names and ages into a list of pairs, where each pair contains a name and the corresponding age.
  • Use Filter to keep only those pairs where the age is 18 or above.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 6
single

single

some-alt