predict.onehot: Predict onehot objects

Description Usage Arguments Value Examples

View source: R/predict.R

Description

Predict onehot objects

Usage

1
2
## S3 method for class 'onehot'
predict(object, data, ...)

Arguments

object

an object of class onehot

data

a data.frame to onehot encode useing object

...

further arguments passed to or from other methods

Value

a matrix with factor variable onehot encoded

Examples

1
2
3
data(iris)
encoder <- onehot(iris)
x <- predict(encoder, iris)

Example output



onehot documentation built on May 2, 2019, 9:15 a.m.