View source: R/labelled_spss_survey.R
as_factor | R Documentation |
Convert a labelled_spss_survey
vector to a type
of factor. Keeps only the levels
and class
attributes.
as_factor(x, levels = "default", ordered = FALSE)
x |
Object to coerce to a factor. |
levels |
How to create the levels of the generated factor:
|
ordered |
If |
as_factor
is imported from haven::as_factor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.