A = data.frame( a = c(1:10), b = c(11:20) )
B = data.frame( a = c(101:110), b = c(111:120) )
C = data.frame( a = c(5:8), b = c(55:58) )
L = list( list(B), list(A,C), list(B,C,A), list(B,C) )
InputList = InputList = list(c(0.9,0.8),c(0.98,0.5),c(1, 1),c(1.5,1.2))
I have two lists L (List of vectors) and InputList (List of Lists of Data Frames). I have to search the position of vector (1,1) in list L and the return the corresponding list of dataframe from InputList
for instance in the above example vector (1,1) is the third element of the Inputlist so I have to return the third list of dataframes from L is List (B,C,A)
1 Answer