White.Denis at epamail.epa.gov
Mon Apr 29 20:24:33 CEST 2002
> I am using the rpart package and seem to have trouble with data sets
> have columns with no data. I look at the column data in R and all
> NA. When this occurs, I get nothing back from the rpart function. Is
> way to get the rpart package to ignore these columns, without knowing
> columns are empty? I have tried the na.action=na.omit and
> na.action=na.exclude, but neither one fixes the problem.
> Thanks, Don
Either fill out the formula in the first argument to rpart() to exclude
those variables, or create a new data.frame without them.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help