Re: [R] Urgent Help with R calculation correlation coefficient

2010-12-06 Thread Liviu Andronic
On Mon, Dec 6, 2010 at 11:30 AM, Peter Ehlers wrote: > If you have a *tab*-delimited file, then why are your using > read.csv?? > > Try this: > 1. read your data with read.table() or read.delim() > If you're very new to R, try Rcmdr. Data > Import > Text file. Liviu _

Re: [R] Urgent Help with R calculation correlation coefficient

2010-12-06 Thread Mark Seeto
Try excluding the first column. cor(gse20437[, 2:4]) chintan85 wrote: > > > Tab delimited file looks like this > > Id v1 v2v3 > df 56 9045 > gh 87 9878 > ty 897867 > > I used this code > > > [code] > > gse20437 <- read.csv("C:/Users//Desktop/data/GSE20437_matrix

Re: [R] Urgent Help with R calculation correlation coefficient

2010-12-06 Thread Peter Ehlers
On 2010-12-06 02:02, chintan85 wrote: Hi, I am trying to calculate correlation coefficient for gene expression data. Tab delimited file looks like this Id v1 v2v3 df 56 9045 gh 87 9878 ty 897867 I used this code [code] gse20437<- read.csv("C:/Users//Desktop/data/

Re: [R] Urgent Help with R calculation correlation coefficient

2010-12-06 Thread Liviu Andronic
On Mon, Dec 6, 2010 at 11:02 AM, chintan85 wrote: > > Hi, > > I am trying to calculate correlation coefficient for gene expression data. > > Tab delimited file looks like this > > Id v1   v2    v3 > df 56   90    45 > gh 87   98    78 > ty 89    78    67 > > I used this code > > > [code] > > gse20