In rpart < 3.1, the rpart object has a component called parms, which was 
stored as a vector.  In rpart 3.1, the parms component is stored as a list, 
but xpred.rpart (3.1) is still expecting a vector.
 From 3.0.2:
  iris.rpart$parms
  [1] 0.3333333 0.3333333 0.3333333 0.0000000 1.0000000 1.0000000 1.0000000
  [8] 0.0000000 1.0000000 1.0000000 1.0000000 0.0000000 1.0000000
In 3.1.0
 > iris.rpart.310$parms
$prior
[1] 0.3333333 0.3333333 0.3333333
$loss
      [,1] [,2] [,3]
[1,]    0    1    1
[2,]    1    0    1
[3,]    1    1    0
$split
[1] 1
This structure is fairly obvious from reading the rpart help, but does not 
work with xpred.rpart as long as there is a non-default parms argument in 
the rpart object.
Dr. Marc R. Feldesman
email:  feldesmanm at pdx.edu
email:  feldesman at attglobal.net
fax:    503-725-3905
"Don't know where I'm going.
Don't like where I've been.
There may be no exit.
But hell, I'm going in."  Jimmy Buffett
Powered by Superchoerus - the 700 MHz Coppermine Box
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._