[R] Excel file Import - to Matrix format

biostat1 sridiyer at gmail.com
Sun Jul 22 01:29:31 CEST 2012


New to R. Need a bit of help. Thanks

I am trying to import data from Excel file. The package I am trying to use
requires data in Matrix format.

Excel -> R Matrix with the constraint that the very first column in Excel
file should became the names for rows of the matrix.

Example. Data has 1000 rows and 11 columns.
1st column is the names of Genes
10 coulmns of numerical data.

I need to read this into R.
it should be a 1000 (row) X 10 Column (Matrix)
1st column of Excel file becomes name of the rows.

I am experimenting with reading as data frame (as I am unable to
find any info on reading into matrix)  split the data frame, etc.

Thanks truly appreciate your help.

What I need: http://r.789695.n4.nabble.com/file/n4637332/thisWorks2.png 


View this message in context: http://r.789695.n4.nabble.com/Excel-file-Import-to-Matrix-format-tp4637332.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list