Extract the taxonomic author from combined taxonomic name and author combined.
Usage
author_from_taxon_name_full(taxon_names, taxon_names_full)
Arguments
- taxon_names
Vector of taxonomic names.
- taxon_names_full
Vector of joined taxonomic name and author.
Value
Vector of the author/s of the taxonomic names.
Details
taxon_names and taxon_names_full must have the same number of elements where the ith element of each correspond to the same name. To obtain the author of ith record and word/s found in taxon_names[i] are removed from taxon_names_full[i].
Examples
taxon_names = c('Achatocarpus praecox', 'Anthurium affine')
taxon_names_full = c('Achatocarpus praecox Griseb.', 'Anthurium affine Schott')
author_from_taxon_name_full(taxon_names, taxon_names_full)
#> [1] "Griseb." "Schott"