Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Select and Filter Customer Data | Data Manipulation with dplyr
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Data Manipulation in R (Core)

bookChallenge: 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, and city columns from the data frame.
  • Filter the data to include only customers whose city matches the target_city parameter.
  • Return the resulting data frame.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

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

close

bookChallenge: 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, and city columns from the data frame.
  • Filter the data to include only customers whose city matches the target_city parameter.
  • Return the resulting data frame.

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Β 1. ChapterΒ 2
single

single

some-alt