dummify_multilabel | R Documentation |
Create dummy variables for multi-label columns
dummify_multilabel(
dataset,
columns = NULL,
split = ",",
effectcoding = FALSE,
prefix = FALSE,
remove_columns = FALSE
)
dataset |
A data set with multi-label character variables. |
columns |
The names or indices of the columns for which dummy variables are to be created; if |
split |
A character vector (or object which can be coerced to such) containing regular expression(s) to use for splitting. |
effectcoding |
Instead of using default 0/1 value pairs for dummy variables, effectcoding allows to set -1/1 pairs. |
prefix |
A logical value indicating whether the names of the dummy variables have the corresponding column names as a prefix. |
remove_columns |
A logical value indicating whether the character variables should be removed from |
The data set with encoded dummy variables.
effectcoding
, strsplit
.
Other Dummifying:
append_rows()
,
dummify()
,
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.