i_to_base_class | R Documentation |
- when value labels for all values are available will return factor
- when value labels are missing will unclass i_labelled
- remove class i_labelled and return variable as base R class
i_to_base_class(
x,
missing_to_na = TRUE,
as_factor = TRUE,
keep_attributes = FALSE
)
x |
vector or data.frame |
missing_to_na |
missing values will become regular NA |
as_factor |
convert to factor when value labels are available |
keep_attributes |
should attributes be preserved |
Returns x coerced to R base class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.