firstly , thanks a lot. yes the files are already binarys. (there are 360 binary files ,each file has dim of 720 *360 files) in one folder of what I am trying to do is to take the average of each 4 files and finally got 40 files to a new folder . the error message is Error in Testarray[i, , ] <- readBin(conne, integer(), size = 2, n = 360 * : incorrect number of subscripts >
-- View this message in context: http://r.789695.n4.nabble.com/read-multiaple-files-within-one-folder-tp4537394p4537507.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.