dummify_multilabel: Create dummy variables for multi-label columns

View source: R/deepDummy.r

dummify_multilabelR Documentation

Create dummy variables for multi-label columns

Description

Create dummy variables for multi-label columns

Usage

dummify_multilabel(
  dataset,
  columns = NULL,
  split = ",",
  effectcoding = FALSE,
  prefix = FALSE,
  remove_columns = FALSE
)

Arguments

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 NULL (default), all character columns are encoded.

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 dataset after they have been encoded in dummy variables.

Value

The data set with encoded dummy variables.

See Also

effectcoding, strsplit.

Other Dummifying: append_rows(), dummify(), effectcoding(), one_hot_decode(), one_hot_encode(), remove_columns(), resample_imbalanced(), sparse_encode()


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.