powered by
Look up species IDs by taxonomic or common name
npn_lookup_names(name, type = "genus", fuzzy = FALSE)
A scientific or common name
One of common_name, genus, or species
One of TRUE or FALSE, if FALSE, uses fuzzy search via agrep, if FALSE, uses grep.
A data frame with species ID numbers based on the name and type parameters.
# 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) # }
Run the code above in your browser using DataLab