[R] randomForest Error passing string argument

From: mmv <melanie.vida_at_gmail.com>
Date: Tue 16 Aug 2005 - 05:47:34 EST

I'm attempting to pass a string argument into the function randomForest but I get an error:

state <- paste(list("fruit ~", "apples+oranges+blueberries", "data=fruits.data, mtry=2, do.trace=100, na.action=na.omit, keep.forest=TRUE"), sep= " ", collapse="")

model.rf <- randomForest(state)

Error in if (n==0) stop ("data(x) has 0 rows") argument is of length zero.

-Thanks in advance,

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Aug 16 05:55:29 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:49 EST