View source: R/get_taxonomic_level.R
get_taxonomic_level | R Documentation |
Gets the specified taxonomic level from a vector of taxonomic strings.
get_taxonomic_level(taxonomies, level, full_names = TRUE, delimiter = ";")
taxonomies |
A character vector of taxonomic strings. |
level |
A numeric value representing the taxonomic level to be extracted. A value of |
full_names |
Logical. If |
delimiter |
A character string of the delimiter between taxonomic levels in the input taxonomies. The default is |
A character vector containing the requested taxonomic level for each element of the input taxonomies.
get_taxonomic_level(taxonomies=
c("Eukaryota;Chordata;Amphibia;Caudata;Ambystomatidae;Ambystoma;Ambystoma_mavortium",
"Eukaryota;Chordata;Amphibia;Anura;Bufonidae;Anaxyrus;Anaxyrus_boreas",
"Eukaryota;Chordata;Amphibia;Anura;Ranidae;Rana;Rana_luteiventris"),
level=5,
full_names=TRUE,
delimiter=";")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.