Hi, On Wed, Apr 21, 2010 at 5:20 PM, Changbin Du <changb...@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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.