data_prepare | R Documentation |
Clean data, check column selection, remove cases with missing values
data_prepare(
data,
cols,
cross,
cols.categorical,
cols.numeric,
cols.reverse,
clean = TRUE
)
data |
Data frame to be prepared. |
cols |
The first column selection. |
cross |
The second column selection. |
cols.categorical |
A tidy selection of columns to be checked for categorical values. |
cols.numeric |
A tidy selection of columns to be converted to numeric values. |
cols.reverse |
A tidy selection of columns with reversed codings. |
clean |
Whether to clean data using data_clean. |
Prepared data frame.
data <- volker::chatgpt
data_prepare(data, sd_age, sd_gender)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.