Description Usage Arguments Examples
View source: R/cols_to_factor.R
convert column to type factor
| 1 | cols_to_factor(df, col_names)
 | 
| df | dataframe | 
| col_names | vector of column names or indices to convert to factor | 
| 1 2 3 4 | ## Not run: 
df <- cols_to_factor(df, c("DOSE", "TRT")) # will convert dose and TRT columns to factor
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.