On Mon, Dec 6, 2010 at 11:02 AM, chintan85 <chintanpatha...@yahoo.com> 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] > > 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.. > Can you post the following? str(gse20437)
Liviu > can anybody help me. > > thanks in advance > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Urgent-Help-with-R-calculation-correlation-coefficient-tp3074206p3074206.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.