why it says "could not find function 'mutate'"

hi friends, im learning R recently and I have this problem with it. I tried to add a new column with mutate but it says "could not find function 'mutate'" I do not understand why. Do I need to install extra packages? Could somebody please help me out? Thank you!

Age<-mutate(NobelNew,age=YOA-YOB)
> Age<-mutate(NobelNew,age=YOA-YOB)
Error in mutate(NobelNew, age = YOA - YOB) : 
  could not find function "mutate"

yes, you should one time install tidyverse

install.packages("tidyverse")

then

library(tidyverse)

thank you nirgrahamuk! that worked!! not sure where you are rn but hope you have a great day/evening!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.