Re: [R] Excel file Import - to Matrix format

2012-07-23 Thread David L Carlson
--Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of arun > Sent: Saturday, July 21, 2012 8:16 PM > To: biostat1 > Cc: R help > Subject: Re: [R] Excel file Import - to Matrix format > > Hello, > > Try this:

Re: [R] Excel file Import - to Matrix format

2012-07-21 Thread arun
elist<-c("Fkh2","Swi5","Sic1") rownames(test2)<-genelist test2 #  [,1]  [,2]  [,3] #Fkh2 0.141 0.242 0.342 #Swi5 0.224 0.342 0.334 #Sic1 0.652 0.682 0.182 A.K. ----- Original Message - From: biostat1 To: r-help@r-project.org Cc: Sent: Saturday, July 21

[R] Excel file Import - to Matrix format

2012-07-21 Thread biostat1
Hi, 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 10