[R] convert list of lists to simple list

2013-10-10 Thread ivan
Dear R Community, I have the following Problem. I use foreach nested loops, which then return a list of lists. E.g.: [[1]] [[1]][[1]] Output [[1]][[2]] Output [[1]][[3]] Output [[2]] [[2]][[1]] Output What I want to achieve is a single layer list, i.e. a list in which [[1]][[1]] becomes

Re: [R] convert list of lists to simple list

2013-10-10 Thread Philippe Grosjean
On 10 Oct 2013, at 13:17, ivan i.pet...@gmail.com wrote: test - foreach(i = 1:3) %:% foreach (j = 1:3) %do% { paste(i,j,sep=,) } Not easily reproducible, unless you write #install.packages(foreach) require(foreach) in front of your code. Here is