search for: samregion1

Displaying 1 result from an estimated 1 matches for "samregion1".

2012 May 24
6
R does not recognise columns and rows as they are supposed to be
Dear All, The code given bellow is to extract values of one region and write that to a text file(there are 365 binary files in the directory). The problem which I am facing is that all my files are binary with size of 360 rows and 720 columns. I specified that in this line: file2<-matrix(data=file,ncol=720,nrow=360) but I got an error : Error in mean(file2[X, Y], na.rm = TRUE) : subscript