[R] Help with calculating correlation coefficient - creating a network

kparamas kparamas at asu.edu
Tue Jan 25 20:08:04 CET 2011


Hi,

I am creating a correlation based graph for the data 27 X 3040.

I am not sure if I am allocating enough space for the data.
I am using the following .R file (which is an example for geneData)!
http://r.789695.n4.nabble.com/file/n3236801/sampleClimate.R
sampleClimate.R</nabble_a

and the data is in the file 
http://r.789695.n4.nabble.com/file/n3236801/data3y3w_landmask.txt
data3y3w_landmask.txt 

I am getting the following error in the line, 
> net <- network(corm, directed = F)
Error in which.matrix.type(x) : subscript out of bounds

But if I use the geneData 500 X 26, it doesnt throw any error!
http://r.789695.n4.nabble.com/file/n3236801/geneData.txt geneData.txt 

Please help to fix the issue. 
(Note since I was having issue I took the transpose in the cor function.)

Thanks,
Kumaraguru
-- 
View this message in context: http://r.789695.n4.nabble.com/Help-with-calculating-correlation-coefficient-creating-a-network-tp3236801p3236801.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list