[R] flatten a list to a "true" list
Ingmar Visser
I.Visser at uva.nl
Tue May 23 14:49:05 CEST 2006
How about using c() ?
c(list(a=1,b=2),list(c=3,d=4)) -> L
L
> L
$a
[1] 1
$b
[1] 2
$c
[1] 3
$d
[1] 4
> is.list(L)
[1] TRUE
How true of a list do you want? (-;
Hth, ingmar
> From: Christian Hoffmann <christian.hoffmann at wsl.ch>
> Date: Tue, 23 May 2006 14:11:01 +0200
> To: <r-help at stat.math.ethz.ch>
> Subject: [R] flatten a list to a "true" list
>
> "flatten"(list(a=1,b=2),list(c=3,d=4)) -> L
More information about the R-help
mailing list