[R] problem with rpart()
Claudio Conversano
conversa at unina.it
Fri Sep 14 13:20:29 CEST 2001
I am using rpart() using R v. 1.3.0 under Windows 2000.
I tried to run the routine with the following command:
a1<-rpart(X1~X2+X3,data=prova)
and it turns out with the following error message:
Error in matrix(c(rp$isplit[, 2:3], rp$dsplit), ncol = 5, dimnames =
list(tname[rp$isplit[, :
length of dimnames[1] not equal to array extent
the dataset prova has been imported in R using the command read.table.
Apparently, it seems that the file has been correctly imported.
Any help will be appreciated!
thanks in advance!
Claudio
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
mailing list