Re: [Rcpp-devel] nested lists into Rcpp

2013-03-17 Thread Dirk Eddelbuettel
On 17 March 2013 at 21:36, David García Callejas wrote: | Hi all,  | | this is my first question here: | | I have in R a list with several elements, some of them are lists, in the vein | of this: | | mylist <- vector("list",10) | for(m in 1:10){ |   mylist[[m]]$ID <- m |   mylist[[m]]$num <- ve

[Rcpp-devel] nested lists into Rcpp

2013-03-17 Thread David García Callejas
Hi all, this is my first question here: I have in R a list with several elements, some of them are lists, in the vein of this: mylist <- vector("list",10) for(m in 1:10){ mylist[[m]]$ID <- m mylist[[m]]$num <- vector("list",5) mylist[[m]]$num2 <- vector("list",5) } Is there a way to pass