Skip to content
Prev 45394 / 63424 Next

Deprecating partial matching in $.data.frame

On Mar 20, 2013, at 16:23 , Hadley Wickham wrote:

            
Just for data frames, at least for now. For lists, there are just too many uses of chisq.test()$exp etc. (I nearly wrote t.test()$p, but that doesn't actually work!)
We'll see about that, but I expect it not to be all that bad. In general purpose code, you need to have a situation where the data frame has known column names, and the one that you want is sufficiently awkward to type.  The p-value column in anova is about the only realistic scenario that I can come up with. The ones in, e.g., summary.lm are in a matrix, not a data frame.