View source: R/format.data.categ.vars.R
format_data_categ_vars | R Documentation |
Format categorical variables as factor for Rrepest
format_data_categ_vars(df, categ.vars, show_na = F)
df |
(data frame) Data to analyse. |
categ.vars |
(string vector) Categorical variables for analysis. |
show_na |
(bool) Keeps NAs as categories to get frequency from. |
Data frame with categorical variables as factors for frequencies or over variables.
format_data_categ_vars(df = mtcars, categ.vars = "cyl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.