
Create lower and upper limits for an elevational range and add them as separate predictors
Source:R/add_predictors.R
add_predictor_elevationpref.RdCreate lower and upper limits for an elevational range and add them as separate predictors
Usage
add_predictor_elevationpref(x, layer, lower, upper, transform = "none")
# S4 method for class 'BiodiversityDistribution,ANY,numeric,numeric'
add_predictor_elevationpref(x, layer, lower, upper, transform = "none")Arguments
- x
distribution()(i.e.BiodiversityDistribution) object.- layer
A
characterstating the elevational layer in the Distribution object orSpatRasterobject.- lower
numericvalue for a lower elevational preference of a species.- upper
numericvalue for a upper elevational preference of a species.- transform
characterAny optional transformation to be applied. Usually not needed (Default:"none").
Examples
if (FALSE) { # \dontrun{
distribution(background) |>
add_predictor_elevationpref(elevation, lower = 200, upper = 1000)
} # }