[R] ?rpart

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Apr 22 00:47:30 CEST 2010


Hi,

On Wed, Apr 21, 2010 at 5:20 PM, Changbin Du <changbind at gmail.com> wrote:
> HI, Dear R community,
>
> Last friday, I used the codes, it works, but today, it does not run?
>
>
>> fit.dimer <- rpart(outcome ~., method="class", data=p.df)
> Error in `[.data.frame`(frame, predictors) : undefined columns selected
>
>
> DOEs anyone have comments or suggestions?   Thanks in advance!

How about checking the result of:

R> colnames(p.df)

Is "outcome" in there?

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the R-help mailing list