is_ppendemic: Check if species are endemic in the ppendemic database

View source: R/is_ppendemic.R

is_ppendemicR Documentation

Check if species are endemic in the ppendemic database

Description

This function checks if a list of species names are endemic in the ppendemic database. Endemic species are those that are native and restricted to a specific geographic area, in this case, Peru. 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, max_distance = 0.1)

Arguments

splist

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

max_distance

A numeric value (default is 0.1) specifying the maximum distance for fuzzy matching. It should be a non-negative value.

Value

A character vector indicating if each species is endemic, not endemic, or if it is an endemic species found using fuzzy matching.

Examples


is_ppendemic(c("Aa aurantiaca", "Aa aurantiaaia", "Werneria nubigena"))


ppendemic documentation built on Aug. 15, 2023, 9:08 a.m.