[R] Creating a list of empty lists
Romain Francois
romain.francois at dbmail.com
Tue Oct 13 15:57:16 CEST 2009
On 10/13/2009 03:48 PM, Magnus Torfason wrote:
> l = list(list())
> for ( i in sequence(length-1) )
> {
> l = list(unlist(l,recursive=FALSE), list())
> }
About this :
> rep( list(list()), 3 )
[[1]]
list()
[[2]]
list()
[[3]]
list()
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos
More information about the R-help
mailing list