catto_dummy: Dummy encoding

Description Usage Arguments Value Examples

Description

Dummy encoding

Usage

1
catto_dummy(train, ..., test, verbose = TRUE)

Arguments

train

The training data, in a data.frame or tibble.

...

The columns to be encoded. If none are specified, then all character and factor columns are encoded.

test

The test data, in a data.frame or tibble.

verbose

Should informative messages be printed? Defaults to TRUE (not yet used).

Value

The encoded dataset in a data.frame or tibble, whichever was input. If a test dataset was provided, a list with names "train" and "test" is returned holding the encoded training and test datasets.

Examples

1

cattonum documentation built on May 2, 2018, 5:06 p.m.