Skip to contents

splnr_targets_byIUCN() allows to assign targets for species used in conservation planning based on IUCN categories. Species can be extracted based on IUCN categories with the spatoalplnrfunction splnr_get_IUCNRedList(). Accessing the IUCN database requires a login token from rl_use_iucn() that needs to be added to the environment using Sys.setenv(IUCN_REDLIST_KEY = "[Your Token]"). You can start by running rredlist::rl_use_iucn().

Usage

splnr_targets_byIUCN(dat, IUCN_target, IUCN_col = "IUCN_Category")

Arguments

dat

A dataframe or sf object with IUCN categories

IUCN_target

Either a numeric or named numeric of targets to apply to IUCN categories

IUCN_col

Optional string to indicate the name of the column with the IUCN categories

Value

dataframe or sf object

Examples

dat <- data.frame(IUCN_Category = c("EW", "EX", NA), target = c(0.3, 0.3, 0.3))
IUCN_target <- c("EX" = 0.8, "EW" = 0.6)
dat <- splnr_targets_byIUCN(dat, IUCN_target)