I am using R with Anaconda and Jupyter. Also I am using tidyverse
library.
When I run:
days_label <- factor(df$days)
fct_recode(days_label,
'Mon;Tue;Wed;Thu;Fri;' = 1,
'Sat;' = 2,
'Sun;' = 3)
I get an error saying that R can't find fct_recode
function.
I have tried with ?tidyverse
and I get the full description of this function.
Is it a problem regarding R's installation, or there is something wrong with my code?