data_clean_default | R Documentation |
Preparation steps:
Remove the avector class from all columns (comes from SoSci and prevents combining vectors)
Recode residual factor values to NA (e.g. "NA nicht beantwortet")
Recode residual numeric values to NA (e.g. -9)
data_clean_default(data, remove.na.levels = TRUE, remove.na.numbers = TRUE)
data |
Data frame |
remove.na.levels |
Remove residual values from factor columns.
Either a character vector with residual values or TRUE to use defaults in VLKR_NA_LEVELS.
You can also define or disable residual levels by setting the global option vlkr.na.levels
(e.g. |
remove.na.numbers |
Remove residual values from numeric columns.
Either a numeric vector with residual values or TRUE to use defaults in VLKR_NA_NUMBERS.
You can also define or disable residual values by setting the global option vlkr.na.numbers
(e.g. |
The tibble remembers whether it was already prepared and the operations are only performed once in the first call.
Data frame with vlkr_df class (the class is used to prevent double preparation).
ds <- volker::chatgpt
ds <- data_clean_default(ds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.