Description Usage Arguments Note Author(s) Examples
A convenience function to convert variables in the data to (ordered) factor variables, based on the type and values columns in the measurement model.
1 | factor_data(srv, vars = NULL)
|
srv |
A survey object. |
vars |
The variables to convert. If |
See rescale_score
and clean_score
to convert scales from
factor to numeric again.
Kristian D. Olsen
1 | x %>% factor_data(vars = c("q1", "q17"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.