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

anna lippelanna24 at hotmail.com
Tue Feb 2 17:47:30 CET 2010


This is what I just found now but I guess there is a simpler way:

datas[which(names(datas)=="A")]<-list(rep(NULL,length(which(names(datas)=="A"))))
but it worked

-----
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-tp1460078p1460091.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list