[R] Deleting many list elements in one time

anna lippelanna24 at hotmail.com
Mon Apr 5 17:17:54 CEST 2010


Hi guys, here is a simple thing I want to do but it doesn't work:
I have a vector of the element indexes that I want to delete called index
so when I write myList[[index]] <- NULL to delete these elements here is
what I get:
Error in myList[[index]] <- NULL : 
  more elements supplied than there are to replace
Isn't it possible to delete multiple elements?


-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/Deleting-many-list-elements-in-one-time-tp1751715p1751715.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list