SpatRaster. Object with a single layer as defined by package terra.
method
character. Specifying 'standard', 'range' or 'rank'.
filepath
character. Optional, specifies a path to the output file.
Details
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.