npn_lookup_names: Species Name Lookup

View source: R/lookup_names.R

npn_lookup_namesR Documentation

Species Name Lookup

Description

Look up species IDs by taxonomic or common name

Usage

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

Arguments

name

A scientific or common name

type

One of common_name, genus, or species

fuzzy

One of TRUE or FALSE, if FALSE, 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

## Not run: 
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)

## End(Not run)

rnpn documentation built on Sept. 11, 2024, 6:54 p.m.