Learn R Programming

charlatan (version 0.2.2)

TaxonomyProvider: TaxonomyProvider

Description

TaxonomyProvider

Arguments

Names

Names were taken from Theplantlist. 500 genera names and 500 epithets were chosen at random from the set of 10,000 names in the dataset in the taxize package. Theplantlist is, as it says on the tin, composed of plant names - so these fake names are derived from plant names if that matters to you. These may generate names that match those of real taxa, but may not as well.

Taxonomic authority

Randomly, the taxonomic authority is in parentheses - which represents that the given authority was not the original authority.

Details

Methods

  • genus() - Get a genus name

  • epithet() - Get an epithet name

  • species(authority, date) - Get a binomial name (genus + epithet) - authority: Include authority. default: FALSE - date: Include authority date. If authority = FALSE, this is ignored. default: FALSE

Examples

Run this code
# NOT RUN {
(z <- TaxonomyProvider$new())
z$genus()
z$epithet()
z$species()
z$species(authority = TRUE)
## FIXME - datetimeprovider slow - may be related to unix time problem
# z$species(authority = TRUE, date = TRUE)
# }

Run the code above in your browser using DataLab