[R] find index in a list of list

ce zadig_1 at excite.com
Sat Mar 11 15:59:31 CET 2017


Hi all,

I have a list of lists like this :

mylist <- list(list(a=10,b="x"),list(a=11,b="y"),list(a=12,b="z"))

I want to find the index of list in mylist where a = 11 and b  = "y"  , so I want to get 2 as a result

Thanks in advance



More information about the R-help mailing list