[R] How to calculate the spatial correlation of several files?
Jonsson
amen.alyaari at Bordeaux.inra.fr
Mon Dec 3 17:26:33 CET 2012
Thanks
you meant it shoud be:
file1=do.call(rbind, lapply(dir1, readBin, integer(), size = 2, n = 360 *
720,
signed = T))
file2=do.call(rbind, lapply(dir2, readBin, integer(), size = 2, n = 360 *
720,
signed = T))
Please see the error
> for (.f in seq_along(dir1)){
+ results[[.f]]<- cor(file1[, .f] ,file2[, .f])
+ }
Error in file2[, .f] : incorrect number of dimensions
--
View this message in context: http://r.789695.n4.nabble.com/How-to-calculate-the-spatial-correlation-of-several-files-tp4651888p4651901.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list