powered by
xlevels
lm
randomForest
AsciiGridImpute
addXlevels(object,origDataFrame)
yai
AsciiGridPredict
if (require(randomForest)) { data(iris) rf = randomForest(x=iris[,2:5],y=iris[,1]) new = addXlevels(rf,iris) print(new$xlevels) predict(new) }
Run the code above in your browser using DataLab