Challenge: 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, andcitycolumns from the data frame. - Filter the data to include only customers whose
citymatches thetarget_cityparameter. - Return the resulting data frame.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 4.17
Challenge: 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, andcitycolumns from the data frame. - Filter the data to include only customers whose
citymatches thetarget_cityparameter. - Return the resulting data frame.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single