new_taxon: Minimal taxon constructor

Description Usage Arguments Value

View source: R/taxon.R

Description

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

Usage

1
2
3
4
5
6
7
8
new_taxon(
  .names = NULL,
  name = character(),
  rank = taxon_rank(),
  id = taxon_id(),
  auth = taxon_authority(),
  ...
)

Arguments

.names

The names of the vector.

name

The names of taxa as a character vector.

rank

The ranks of taxa as a taxon_rank vector.

id

The ids of taxa as a taxon_id vector.

auth

The authority of the taxon as a taxon_authority vector.

Value

An S3 object of class taxa_taxon


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