| dummify | R Documentation |
Create dummy variables for categorical (nominal or ordinal) columns
dummify(
dataset,
columns = NULL,
remove_level = c("first", "last", "most", "least", "none"),
effectcoding = FALSE,
remove_columns = FALSE
)
dataset |
A data set with factor and/or character variables. |
columns |
The names or indices of the columns for which dummy variables are to be created; if |
remove_level |
Controls which level of a factor or character variable is removed. |
effectcoding |
Instead of using default 0/1 value pairs for dummy variables, effectcoding allows to set -1/1 pairs. |
remove_columns |
A logical value indicating whether the factor/character variables should be removed from |
The dataset with encoded dummy variables.
effectcoding, append_rows.
Other Dummifying:
append_rows(),
dummify_multilabel(),
effectcoding(),
one_hot_decode(),
one_hot_encode(),
remove_columns(),
resample_imbalanced(),
sparse_encode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.