[R] Using lapply with two lists

anna lippelanna24 at hotmail.com
Fri Mar 26 22:34:52 CET 2010


Hello guys, 
I have a list L1 of matrix. I have another list L2 with the same number of
elements representing the row of the L matrix that I want to delete
(L1[[i]][-L2[[i]],]) but I can't do this with lapply as it iterates through
L1 (first argument) and not L2. Any idea?

-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/Using-lapply-with-two-lists-tp1692883p1692883.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list