get_taxonomic_level {LocaTT} | R Documentation |
Get Specified Taxonomic Level from Taxonomic Strings
Description
Gets the specified taxonomic level from a vector of taxonomic strings.
Usage
get_taxonomic_level(taxonomies, level, full_names = TRUE, delimiter = ";")
Arguments
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 |
Value
A character vector containing the requested taxonomic level for each element of the input taxonomies.
Examples
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=";")