[R] Deleting many columns of a data frame with the same name in a row

anna lippelanna24 at hotmail.com
Tue Feb 2 17:35:58 CET 2010


Hi, I have a data frame datas with half of the columns with the same name
"A". I want to delete all those columns from the data frame so here is what
I did:
datas$A <- NULL
The problem is that it deleted only one column, I would have to do it as
many times as there are "A" columns. Is there a way to do it in one time?
thank you

-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/Deleting-many-columns-of-a-data-frame-with-the-same-name-in-a-row-tp1460078p1460078.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list