Challenge: Select and Filter Customer Data
Task
Swipe to start coding
In this task, you will apply your knowledge of selecting and filtering data frames in R to prepare a list of customers for a marketing campaign. The goal is to extract only the relevant columns and filter customers who are located in a specific city.
- Select only the
name,email, andcitycolumns from the data frame. - Filter the data to include only customers whose
citymatches thetarget_cityparameter. - Return the resulting data frame.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: Select and Filter Customer Data
Swipe to show menu
Task
Swipe to start coding
In this task, you will apply your knowledge of selecting and filtering data frames in R to prepare a list of customers for a marketing campaign. The goal is to extract only the relevant columns and filter customers who are located in a specific city.
- Select only the
name,email, andcitycolumns from the data frame. - Filter the data to include only customers whose
citymatches thetarget_cityparameter. - Return the resulting data frame.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 2
single