predict.onehot {onehot} | R Documentation |
Predict onehot objects
## S3 method for class 'onehot' predict(object, data, ...)
object |
an object of class |
data |
a data.frame to onehot encode useing |
... |
further arguments passed to or from other methods |
a matrix with factor variable onehot encoded
data(iris) encoder <- onehot(iris) x <- predict(encoder, iris)