Nothing
#' util_rescale
#'
#' Linearly rescale element values in a raster to a range between 0 and 1
#'
#' @param x [\code{Raster* object}]
#'
#' @return Raster* object with values ranging from 0-1
#'
#' @details Rasters generated by \code{nlm_*} functions are scaled between 0 and 1 as default, this option can be set to \code{FALSE} if needed.
#'
#' @keywords internal
#'
util_rescale <- function(x) {
rescaled_NLM <-
(x - raster::cellStats(x, "min")) /
(raster::cellStats(x, "max") - raster::cellStats(x, "min"))
return(rescaled_NLM)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.