as_factor {retroharmonize} | R Documentation |
Convert labelled_spss_survey vector To Factor
Description
Convert a labelled_spss_survey
vector to a type
of factor. Keeps only the levels
and class
attributes.
Usage
as_factor(x, levels = "default", ordered = FALSE)
Arguments
x |
Object to coerce to a factor. |
levels |
How to create the levels of the generated factor:
|
ordered |
If |
See Also
as_factor
is imported from haven::as_factor
[Package retroharmonize version 0.2.0 Index]