normalize | R Documentation |
Normalize a raster file according to one three methods, 'standard', 'range' or 'rank'.
normalize(layer, method = "standard", filepath = NULL)
layer |
SpatRaster. Object with a single layer as defined by package terra. |
method |
character. Specifying |
filepath |
character. Optional, specifies a path to the output file. |
The three options, "standard" standardizes data to a mean = 0 and sd = 1, "range" standardizes to a range of 0 to 1, and "rank" similarly standardizes to a range of 0 to 1 but does so after ranking all points.
A raster layer.
## Not run:
region = gecko.data("layers")[[1]]
ranked_region = normalize(region, method = "rank")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.