Skip to content
Prev 246011 / 398503 Next

access a column of a dataframe without qualifying the name of the column

Here is an alternaive approach that is closer to that used by lm and friends.
[1]  1  2  3  4  5  6  7  8  9 10
[1] 11 12 13 14 15 16 17 18 19 20
There is a slight added bonus this way
[1] 13 15 17 19 21 23 25 27 29 31
(Well, I did say 'slight'.)

Bill Venables.