I am able to get elements for a list of lists.
How can I get using a loop as I want to use in another loop?
Thanks
library(rlist)
mat3 <- combn(1:5, 3)
mat2<- combn(1:5, 2)
list2=split(mat2, rep(1:ncol(mat2), each = nrow(mat2)))
list3=split(mat3, rep(1:ncol(mat3), each = nrow(mat3)))
mylist=list.append(list3,list2)
mylist