rescale0to1 {climateStability}R Documentation

Rescale raster from 0 to 1

Description

A function to rescale a raster from 0 to 1. This is done using the formula (value-min)/(max-min).

Usage

rescale0to1(rasterForCalculation)

Arguments

rasterForCalculation

A raster that contains data to be rescaled

Value

A raster that has been rescaled from 0 to 1

References

Owens, HL, and RP Guralnick. Submitted, Biodiversity Informatics.

Examples


data(precipDeviation);
precipStability <- 1/precipDeviation;
relativeClimateStability <- rescale0to1(precipStability);


[Package climateStability version 0.1.1 Index]