new_taxon_db_def: Minimal taxon_db_def constructor

Description Usage Arguments Value

View source: R/taxon_db_def.R

Description

Minimal taxon_db_def 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
new_taxon_db_def(
  name = character(),
  url = character(),
  desc = character(),
  id_regex = character(),
  rank_levels = list()
)

Arguments

name

Name of the database in lower case. Inputs will be transformed to a character vector.

url

URL of the database website. Inputs will be transformed to a character vector.

desc

Description of the database. Inputs will be transformed to a character vector.

id_regex

A regular expression for taxon IDs of the database. Inputs will be transformed to a character vector.

rank_levels

Valid taxonomic ranks for the database. Should be a list of numeric vectors named by taxonomic ranks.

Value

An S3 object of class taxa_taxon_db_def


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