this is just a general (coarse) approach; if need to specify levels, do it manually.
1 | df_force_factor(dat, cols)
|
dat |
a data frame |
cols |
either an index vector or a string character for colnames to be applied with as.factor |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.