search for: outfolder

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

Did you mean: getfolder
2008 Jul 06
3
Lots of huge matrices, for-loops, speed
...e (as you may see from the code below) and did not find a way by now. I would appreciate very much any suggestions for speeding up the procedure. Thanks, Zarza The code (running but sloooooow): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ regrid <- function (infolder, x, outfolder) { # List of input files setwd (infolder) filelist <- dir (pattern=".*.asc$", full.names = F) # Dimensions (making use of the header information coming with # the .asc-input files, ESRI-format) hd <- read.table (filelist [1], nrows = 6) cols <- hd[1,2] rows <- hd[2,2] times...