I’m currently working on the project Explore the 1985 Cars Dataset in the Learn R course: https://www.codecademy.com/courses/learn-r/projects/1985-cars-r-project
I’m stuck on Task 12, and can’t seem to figure out the goal of the task itself. I’ve included tasks 12 and 13 below. I think I’m for sure doing 12 incorrectly, if not 13 as well.
- Task 12: There’s a lot of makes of cars to choose from, but you may prefer one over the others. Which make do you prefer the most? Create a variable called
chosen_makethat contains the make you want to check. The hint below provides the list of makes to choose from.
- Task 13: Filter
carsto only include rows where the
makecolumn is equal to
chosen_make. Save the new dataframe to
# choose make chosen_make <- cars %>% filter(make == 'subaru')
# filter rows by make chosen_make_details <- cars %>% filter(make == chosen_make) head(chosen_make_details)