Try this:

unclass(as.data.frame(mat))


On Fri, Sep 3, 2010 at 9:48 AM, Ron Michael <ron_michael70@yahoo.com> wrote:

> Dear all, suppose I have following matrix:
>
> > mat <- matrix(rnorm(25), 5)
> >
> > mat
>             [,1]       [,2]        [,3]       [,4]       [,5]
> [1,]  0.97056228 -1.3278509 -0.73511792  2.1650629 -0.4411997
> [2,]  0.58613700 -0.2559899 -1.18334248 -1.4990907  1.8138846
> [3,] -1.03333313  2.0227887  0.89622681  0.6483973 -1.5523283
> [4,]  0.38968833  0.2490004 -0.02301061 -0.2705150 -0.9237268
> [5,]  0.03306289 -0.4022751 -0.44404905 -1.6810542 -0.1016683
>
> Now from "mat" I would like to create a "list" object where i-th column of
> "mat" will represent i-th element of that list object.
>
> I am looking for some way to avoid for loop. It will be really helpful if
> somebody points me on that.
>
> Thanks,
>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

