Skip to content
Prev 171355 / 398503 Next

Filtering a data frame using a string for colum header

Hi

r-help-bounces at r-project.org napsal dne 23.02.2009 03:44:41:
would
must
It is a bit deeper than [] selection.
Error in -"DrHorrible" : invalid argument to unary operator, so the error 
is within selection operator [...].

If you know the name and you do not want column with this particular name 
use

my.df[,!names(my.df)==("DrHorrible")]

Regards
Petr
Kingdom.
http://www.R-project.org/posting-guide.html
http://www.R-project.org/posting-guide.html