Skip to content
Back to formatted view

Raw Message

Message-ID: <1291631566692-3074251.post@n4.nabble.com>
Date: 2010-12-06T10:32:46Z
From: Mark Seeto
Subject: Urgent Help with R calculation correlation coefficient
In-Reply-To: <1291629723023-3074206.post@n4.nabble.com>

Try excluding the first column.

cor(gse20437[, 2:4])


chintan85 wrote:
> 
> 
> 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]
> 
> gse20437 <- read.csv("C:/Users//Desktop/data/GSE20437_matrix.txt",header =
> TRUE, sep = ",", strip.white = TRUE)
> 
> gsecor <- cor(gse20437, method ="pearson") or
> 
> gsecor <- cor(gse20437)
> 
> [/code]
> 
> i get error x must be numeric..
> 
> 

-- 
View this message in context: http://r.789695.n4.nabble.com/Urgent-Help-with-R-calculation-correlation-coefficient-tp3074206p3074251.html
Sent from the R help mailing list archive at Nabble.com.