Displaying 1 result from an estimated 1 matches for "zarza".
Did you mean:
garza
2008 Jul 06
3
Lots of huge matrices, for-loops, speed
...week). I read the contributions related to speeding up code and maybe
vectorizing parts of the procedure could help a bit. However, I am a
neophyte (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 i...