Paulo Barata-3 wrote > > Dr. Dalgaard, > > Thank you. You are right, with() is able to catch > spelling errors in the name of variables inside a data frame. > > But couldn't some error or warning be included in R when referring > to a non-existent variable inside a data frame with the df$var > notation, without the use of with()? > > Is there any reason why R does not have such a kind of error > message? >
See this discussion: https://stat.ethz.ch/pipermail/r-help/2012-July/317562.html Berend -- View this message in context: http://r.789695.n4.nabble.com/variable-column-in-a-data-frame-tp4636561p4636579.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.