Skip to contents

splnr_featureNames() allows you to extract the names of features you want to pass to a prioritizr prioritization. It requires an sf object input and returns the column names of the object excluding any columns you specify in the exclude argument.

Usage

splnr_featureNames(dat, exclude = NA)

Arguments

dat

sf dataframe of features

exclude

Character vector of any columns to exclude

Value

A character vector of names

Examples

df <- dat_species_prob %>%
  splnr_featureNames(exclude = c("cellID"))