powered by
Calculates the modified z-score for all cells in a raster
raster.Zscore(x, p.value = FALSE, file.name = NULL, ...)
raster class object or raster written to disk
A raster class object
Return p-value rather than z-score raster (FALSE/TRUE)
Name of raster written to disk
Additional arguments passed to writeRaster
Jeffrey S. Evans <jeffrey_evans@tnc.org>
# \donttest{ library(terra) r <- rast(nrows=500, ncols=500) r[] <- runif(ncell(r), 0, 1) # Modified z-score ( z <- raster.Zscore(r) ) # P-value ( p <- raster.Zscore(r, p.value = TRUE) ) # }
Run the code above in your browser using DataLab