predict.onehot {onehot}R Documentation

Predict onehot objects

Description

Predict onehot objects

Usage

## 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

data(iris)
encoder <- onehot(iris)
x <- predict(encoder, iris)

[Package onehot version 0.1.1 Index]