Re: [R] convert a splus randomforest object to R

2011-08-09 Thread Zhiming Ni
destatus" "leftDaughter" "rightDaughter" ... $ coefs : symbol coefs $ y : num [1:51368] 26697 28758 611 1035 12483 ... $ test : symbol test $ inbag : symbol inbag - attr(*, "class")= chr "randomForest" I tried

[R] convert a splus randomforest object to R

2011-08-02 Thread Zhiming Ni
Hi, I have a randomforest object "cost.rf" that was created in splus 8.0, now I need to use this trained RF model in R. So in Splus, I dump the RF file as below data.dump("cost.rf", file="cost.rf.txt", oldStyle=T) then in R, restore the dumped file, library(foreign) data.restore("cost.rf.tx