Efficient scaling of Raster* objects
parScale
expands the raster::scale
function to allow for
faster parallel processing, scaling each layer of x
in parallel.
parScale(x, ...) ## S4 method for signature 'Raster' parScale( x, center = TRUE, scale = TRUE, filename = "", progress = FALSE, parallel = FALSE, n = 1, cl = NULL, keep.open = FALSE, ... )
x |
Raster* object |
... |
Additional arguments for |
center |
logical or numeric. If |
scale |
logical or numeric. If |
filename |
character. Optional filename to save the Raster* output to
file. If this is not provided, a temporary file will be created for large |
progress |
logical. If |
parallel |
logical. If |
n |
numeric. Number of CPU cores to utilize for parallel processing |
cl |
optional cluster object |
keep.open |
logical. If |
Raster* object
ch.scale <- parScale(x = climdat.hist)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.