Skip to contents

splnr_targets_byCategory() allows to assign targets for conservation planning based on species categories.

Usage

splnr_targets_byCategory(dat, catTarg, catName = "Category")

Arguments

dat

A sf object with the features and categories

catTarg

A named character vector with categories and target

catName

An optional argument for the name of the category column in dat

Value

An sf object with targets added

Examples

dat <- splnr_targets_byCategory(
  dat = dat_category,
  catTarg = c("Group1" = 0.5, "Group2" = 0.2),
  catName = "category"
)