I have an R nested-list object (called Rlist) containing 300 elements, each of which contains an "inner-list" containing anywhere from 1-100 elements. I want to pass Rlist to a function I'm writing in Rcpp, but I'm having trouble figuring out how to extract the inner-lists within Rcpp.
How can I pass Rlist to my Rcpp function? In particular, suppose I want to access all elements within the 10th inner-list object. How can I do this? I tried passing Rlist to Rcpp as a "List" object, and then tried Rlist(9) but this is not giving me what I want.
Thanks