Skip to contents

This function checks if a list of species names are endemic in the ppendemic database. The function allows fuzzy matching for species names with a maximum distance threshold to handle potential typos or variations in species names.

Usage

is_ppendemic(splist)

Arguments

splist

A character vector containing the list of species names to be checked for endemic in the ppendemic database.

Value

A character vector indicating if each species is endemic or not endemic.

Examples

# \donttest{
is_ppendemic(c("Aa aurantiaca", "Aa aurantiaaia", "Werneria nubigena"))
#> [1] "Endemic"     "Endemic"     "Not endemic"
# }