scale {raster} | R Documentation |
Scale values
Description
Center and/or scale raster data
Usage
## S4 method for signature 'Raster'
scale(x, center=TRUE, scale=TRUE)
Arguments
x |
Raster* object |
center |
logical or numeric. If |
scale |
logical or numeric. If |
Value
Raster* object
See Also
Examples
b <- brick(system.file("external/rlogo.grd", package="raster"))
bs <- scale(b)
[Package raster version 3.6-26 Index]