Hello R Help,

I have a data set with 30 variables, some of these variables are factors
while some are numeric. My response variable is binary and I have made sure
that this is set as a factor with two levels and given each level a name
"Yes" and "No". I would like to run the randomPackage to discover variable
importance but when ever I try the following code:

model <- randomForest(IsBadBuy~. ,
                  data = train,
                  importance=TRUE,
                  keep.forest=TRUE)

I am given the response:

Error in na.fail.default(list(IsBadBuy = c(1L, 1L, 1L, 2L, 1L, 1L, 1L,  : 
  missing values in object

However, I have gone through all of my variables and I have not found one
single missing value. 

Can someone please advise me?

Thank you in advance

Graeme



--
View this message in context: 
http://r.789695.n4.nabble.com/Can-I-use-random-Forest-package-tp4569311p4569311.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to