Quick question - hoping for some help.
I'm practicing in R. I type this into the console:
?mtcars
And I see in the bottom-right hand quadrant of RStudio information about mtcars.
Later on, I'm trying to convert something as a factor:
mtcars$am <-as_factor(mtcars$am)
But I get this error message:
Error in as_factor(mtcars$am) : could not find function "as_factor"
So I try to explore what that means by looking at the help section:
?as_factor
But I get this error message:
No documentation for ‘as_factor’ in specified packages and libraries:
you could try ‘??as_factor’
I follow the advice and see that as factor is in the forcats library, which I guess I didn't have loaded.
How should I think about the difference between looking for help documentation using one question mark ?mtcars vs two question marks ??as_factor? Is there a heuristic for this?