one_hot_encoder: One-hot Encoder

Description Usage Arguments Value Examples

View source: R/one_hot_encoder.R

Description

One-hot Encoder

Usage

1
one_hot_encoder(data, feature, as_integer = FALSE)

Arguments

data

Input data frame

feature

Unquoted form of the feature/column to encode

as_integer

Whether the boolean should be converted to integer or not

Value

Data frame with encodeded feature column

Examples

1
2
set.seed(11)
one_hot_encoder(iris[sample(1:150, 10),], Species)

kreh-team/encoder documentation built on May 13, 2020, 8:43 a.m.