new_taxon_id: Minimal taxon_id constructor

Description Usage Arguments Value

View source: R/taxon_id.R

Description

Minimal taxon_id constructor for internal use. Only use when the input is known to be valid since few validity checks are done.

Usage

1
new_taxon_id(.names = NULL, id = character(), db = taxon_db())

Arguments

.names

The names to apply to the vector

id

Zero or more taxonomic ids. Inputs will be transformed to a character vector.

db

The name(s) of the database(s) associated with the IDs. If not NA (the default), the input must consist of names of databases in database_ref. The length must be 0, 1, or equal to the number of IDs.

Value

An S3 object of class taxa_taxon_id


zachary-foster/taxa2 documentation built on Jan. 1, 2021, 1:48 p.m.