[BioC] Converting list to a matrix

James W. MacDonald jmacdon at med.umich.edu
Tue Apr 12 15:10:18 CEST 2011


Hi Pankaj,

On 4/12/2011 8:54 AM, pankaj borah wrote:
> I have a list ( L) of 63 objects and each object has 30800 variables.

This has nothing to do with Bioconductor, so you should ask on R-help.

Best,

Jim


>
>> str (L)
>
> List of 63
>   $ objec1  : num [1:30300] 0.927 0.813 0.397 0.703 0.651 ...
>   $ object2  : num [1:30300] 0.636 0.447 0.738 0.648 0.62 ...
> .............
>   $ object63  : num [1:30380] 0.1123 0.2119 0.4078 0.0383 0.0641 ....
>
>
>
>
> I want to convert  the list L to a matrix M
>
> So it should be ---
>> str(M)
>
> num [1:30380, 1:63]
>   attr(*, "dimnames")=List of 2
>
>
> How do I do that ?
>
> Regards,
>
> Pankaj Barah
>
> Department of Biology,
> Norwegian University of Science&  Technology (NTNU)
> Realfagbygget, N-7491 Trondheim, Norway
>
> 	[[alternative HTML version deleted]]
>
>
>
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor

-- 
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues 



More information about the Bioconductor mailing list