Learn R Programming

onehot (version 0.1.1)

predict.onehot: Predict onehot objects

Description

Predict onehot objects

Usage

# S3 method for 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

Run this code
data(iris)
encoder <- onehot(iris)
x <- predict(encoder, iris)

Run the code above in your browser using DataLab