Skip to content
Prev 10160 / 398503 Next

concatenating lists

Hello Faheem,
On Wed, 14 Mar 2001, Faheem Mitha wrote:

            
Maybe this can give you a starting point.
I guess their are more elegant ways to do this ...
+ 
+   tmp <- paste("list(",
+                paste(paste("liste[[",1:length(liste),"]]",sep=""),
+                      collapse=","),",x)",sep="") 
+   eval(parse(text=tmp))  
+ }
[[1]]
[1] 0.6855152 0.5541156

[[2]]
[1] 0.19300487 0.07686829

[[3]]
[1] 0.4915225 0.9025518

best

jan
Message-ID: <20010315123518.A6179@diw14093.diw.de>
In-Reply-To: <Pine.LNX.4.21.0103141809070.2086-100000@Chrestomanci.home.earth>; from faheem@email.unc.edu on Wed, Mar 14, 2001 at 18:17:39 -0500