
Flag values outside the calibration range (non-analog climate)
Source:R/temporal.R
outside_range.RdModels extrapolate when projected to climates absent from the calibration
data. This flags rows where at least one variable lies outside the range
found in reference (a simple univariate check, like the "clamping mask"
of Maxent and biomod2).
Examples
ref <- data.frame(t = c(0, 10), p = c(100, 900))
outside_range(data.frame(t = c(5, -2), p = c(500, 500)), ref)
#> [1] FALSE TRUE