[R] creat list

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Sep 6 12:54:39 CEST 2007



livia wrote:
> Hi, 
> 
> I have a list named "lista", which has 50 vectors and each vector has the
> length about 1200. I would like to creat a matrix out of "lista". What I try
> now is cbind(lista[[1]],lista[[2]],...,lista[[50]]). I guess there would be
> an easy way of doing this. Could anyone give me some advice?


matrix(unlist(lista), ncol=50)

Uwe Ligges



More information about the R-help mailing list