On Jul 26, 2011 Lao Meng wrote: > glht(result, linfct = mcp(f_GROUP="Tukey") ) > Error in `[.data.frame`(mf, nhypo[checknm]) : undefined columns selected
It is almost certainly the underscore in the name ("_") that is causing the problem. Try putting the term in quotes ("f_GROUP"). Regards, Mark. ----- Mark Difford (Ph.D.) Research Associate Botany Department Nelson Mandela Metropolitan University Port Elizabeth, South Africa -- View this message in context: http://r.789695.n4.nabble.com/a-question-about-glht-function-tp3695038p3695067.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.