View source: R/get_scientific_name.R
get_scientific_name | R Documentation |
Gets the scientific name for one or more vernacular names based on the
taxonomic information found in the metadata (package$taxonomic
).
The match is performed case insensitively.
If a vernacular name is not valid, an error is returned
get_scientific_name(
package = NULL,
vernacular_name,
datapkg = lifecycle::deprecated()
)
package |
Camera trap data package object, as returned by
|
vernacular_name |
Character vector with input vernacular name(s). |
datapkg |
Deprecated.
Use |
Character vector of scientific name(s).
Other exploration functions:
get_cam_op()
,
get_custom_effort()
,
get_effort()
,
get_n_individuals()
,
get_n_obs()
,
get_n_species()
,
get_rai()
,
get_rai_individuals()
,
get_record_table()
,
get_species()
# One or more vernacular names
get_scientific_name(mica, "beech marten")
get_scientific_name(mica, c("beech marten", "mallard"))
# Vernacular names can be passed in different languages
get_scientific_name(mica, c("beech marten", "wilde eend"))
# Search is performed case insensitively
get_scientific_name(mica, c("MaLLarD"))
## Not run:
# An error is returned if at least one invalid vernacular name is passed
get_scientfic_name(mica, "this is a bad vernacular name")
# A scientific name is an invalid vernacular name of course
get_scientific_name(mica, c("Castor fiber", "wilde eend"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.