| fac | R Documentation | 
This function transforms variables to the factor class
fac(data, vars, ...)
| data | a dataframe to be used | 
| vars | Variables to be transformed to factor | 
| ... | ... | 
Converted dataframe
fac(mtcars, am, cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.