rescale0to1 | R Documentation |
A function to rescale a raster from 0 to 1. This is done using the formula (value-min)/(max-min).
rescale0to1(rasterForCalculation)
rasterForCalculation |
A 'SpatRaster' that contains data to be rescaled |
A raster that has been rescaled from 0 to 1
Owens, H.L., Guralnick, R., 2019. climateStability: An R package to estimate climate stability from time-slice climatologies. Biodiversity Informatics 14, 8–13. https://doi.org/10.17161/bi.v14i0.9786
precipDeviation <- terra::rast(system.file("extdata/precipDeviation.asc", package = "climateStability")) precipStability <- 1/precipDeviation relativeClimateStability <- rescale0to1(precipStability)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.