Linearly transforms the data to a range from 0 to 1 using minimum and maximum values.
Arguments
- x
Values to transform (a vector, a SpatRaster, or other data types where mathematical functions can be applied)
Value
Returns a transformed object of same data type as x.
References
Author
Note
Examples
# random values
val <- runif(1000, 0, 10)
# apply a logitic transformation to values
sval <- scale01(val)
plot(val, sval, cex=0.2)