Skip to contents

This function allows - out of a character vector with the names of an already added PredictorDataset object - to select a particular set of predictors. See Examples.

Usage

sel_predictors(x, names)

# S4 method for class 'BiodiversityDistribution,character'
sel_predictors(x, names)

Arguments

x

distribution() (i.e. BiodiversityDistribution) object.

names

vector A Vector of character names describing the environmental stack.

Examples

if (FALSE) { # \dontrun{
distribution(background) |>
 add_predictors(my_covariates) |>
 sel_predictors(names = c("Forest", "Elevation"))
} # }