Description Usage Arguments Value Examples
Takes a data frame containing variables of class haven::labelled
and replaces them with factors
1 |
ldf |
A data frame which may contained variables of class |
A data frame in which labeled variables have been replaced with factors
1 2 3 4 5 | fp <- system.file("extdata", "survey_data.sav", package = "zmarket")
orig <- haven::read_sav(fp)
rep <- df_labelled_to_factor(orig)
lapply(orig, "class")
lapply(rep, "class")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.