Look up species IDs by taxonomic or common name

npn_lookup_names(name, type = "genus", fuzzy = FALSE)

Arguments

name

A scientific or common name.

type

One of "common_name", "genus", or "species".

fuzzy

Logical; if TRUE, uses fuzzy search via agrep(), if FALSE, uses grep().

Value

A data frame with species ID numbers based on the name and type parameters.

Examples

if (FALSE) { # \dontrun{
npn_lookup_names(name='Pinus', type='genus')
npn_lookup_names(name='pine', type='common_name')
npn_lookup_names(name='bird', type='common_name', fuzzy=TRUE)
} # }