TaxonomyProvider: TaxonomyProvider

TaxonomyProviderR Documentation

TaxonomyProvider

Description

Taxonomy provider

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.

Super class

charlatan::BaseProvider -> TaxonomyProvider

Public fields

genera

(character) vector of generic names

epithets

(character) vector of eptithet names

Methods

Public methods

Inherited methods

Method genus()

Get a genus name

Usage
TaxonomyProvider$genus()

Method epithet()

Get an epithet name

Usage
TaxonomyProvider$epithet()

Method species()

Get a binomial name (genus + epithet)

Usage
TaxonomyProvider$species(authority = FALSE, date = FALSE)
Arguments
authority

Include authority. default: FALSE

date

Include authority date. If authority = FALSE, this is ignored. default: FALSE


Method clone()

The objects of this class are cloneable with this method.

Usage
TaxonomyProvider$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

(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)

charlatan documentation built on Sept. 13, 2023, 5:08 p.m.