Learn data science with Python and R projects - Getting error message despite code seeming correct

For the exercise in the course, I am getting an error message:
My code:


graduation <- graduation %>%
  select(DBN, `School Name`, `Total Grads - % of cohort`, `Dropped Out - % of cohort`) %>% 
    filter(Demographic == "Total Cohort" & Cohort == "2006")

Error message:

Error in select(., DBN, `School Name`, `Total Grads - % of cohort`, `Dropped Out - % of cohort`): could not find function "select"
Traceback:

1. graduation %>% select(DBN, `School Name`, `Total Grads - % of cohort`, 
 .     `Dropped Out - % of cohort`) %>% filter(Cohort == "2006" & 
 .     Demographic == "Total Cohort")
2. filter(., Cohort == "2006" & Demographic == "Total Cohort")
3. as.ts(x)

Answer:

graduation <- graduation %>%
  filter(Cohort == "2006" & Demographic == "Total Cohort") %>%
  select(DBN, `School Name`, `Total Grads - % of cohort`, `Dropped Out - % of cohort`)

Can someone advise where my mistake is. As far as I am aware, there is no chronology for usage of select and filter statements

Hello @sauvik.goswami08
Your code has not followed the instructions specified.

  1. Start by filtering first
  2. Then select the stated columns