new_taxon_id: Minimal taxon_id constructor

View source: R/taxon_id.R

new_taxon_idR Documentation

Minimal taxon_id constructor

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

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


ropenscilabs/taxa documentation built on Feb. 23, 2024, 6:31 p.m.