Re: [R] Data.matrix fail to convert data.frame into matrix

2008-06-11 Thread Moshe Olshansky
> > Subject: [R] Data.matrix fail to convert data.frame into matrix > To: [EMAIL PROTECTED] > Received: Thursday, 12 June, 2008, 1:28 PM > Hi, > > With the following codes, I attempt to convert > the data.frame into a matrix. > > However I notice that data.matrix fun

[R] Data.matrix fail to convert data.frame into matrix

2008-06-11 Thread Gundala Viswanath
Hi, With the following codes, I attempt to convert the data.frame into a matrix. However I notice that data.matrix function doesn't seem to work. __ BEGIN__ dat <- read.table("mydata", comment.char = "!" , na.strings = "null"); # Select n-genes by random sample # n = 1 nosamp <- 1 geneid <- sequ