Skip to content
Prev 181544 / 398502 Next

How to exclude a column by name?

On Wed, May 27, 2009 at 12:52:41PM +0200, Paul Hiemstra wrote:
Thanks to you and Linlin.  It did not occur to me to use which(); I thought
that there would be a shorter way to accomplish this since names are
first-class indices for data frames and arrays.  (Or are they?  What happens
under the hood when I write df[,"a"]?)