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! -- Sincerely, Changbin -- [[alternative HTML version deleted]]
The Machine Learning Task view lists alternative packages you could try. 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! > > > > -- > Sincerely, > Changbin > -- > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >
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