Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Select and Filter Customer Data | Data Manipulation with dplyr
Data Manipulation in R (Core)

bookChallenge: Select and Filter Customer Data

Opgave

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.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Select and Filter Customer Data

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

some-alt