Hi Clayton,
If you use the formula interface, then it should do what you want:
R library(randomForest)
randomForest 4.5-18
Type rfNews() to see new features/changes/bug fixes.
R iris1 - iris[-(1:5),]
R iris2 - iris[1:5,]
R iris2[1, 3] - NA
R iris2[3, 1] - NA
R iris.rf - randomForest(Species ~
@stat.math.ethz.ch
cc
Subject
RE: [R] NA and NaN randomForest
Hi Clayton,
If you use the formula interface, then it should do what you want:
R library(randomForest)
randomForest 4.5-18
Type rfNews() to see new features/changes/bug fixes.
R iris1 - iris[-(1:5),]
R iris2 - iris[1:5,]
R iris2
Dear R-help,
This is about randomForest's handling of NA and NaNs in test set data.
Currently, if the test set data contains an NA or NaN then
predict.randomForest will skip that row in the output.
I would like to change that behavior to outputting an NA.
Can this be done with flags to