[R] variable (column) in a data frame

Berend Hasselman bhh at xs4all.nl
Sun Jul 15 20:17:37 CEST 2012


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.



More information about the R-help mailing list