Stores the rank of a taxon. This is typically used to store where taxon information came from in taxon() objects.

taxon_rank(name, database = NULL)

Arguments

name

(character) rank name. required

database

(character) database class object, optional

Value

An R6Class object of class TaxonRank

See also

Examples

taxon_rank("species")
#> <TaxonRank> species #> database: none
taxon_rank("genus")
#> <TaxonRank> genus #> database: none
taxon_rank("kingdom")
#> <TaxonRank> kingdom #> database: none
(x <- taxon_rank( "species", database_list$ncbi ))
#> <TaxonRank> species #> database: ncbi
x$rank
#> NULL
x$database
#> <database> ncbi #> url: http://www.ncbi.nlm.nih.gov/taxonomy #> description: NCBI Taxonomy Database #> id regex: .*
# a null taxon_name object taxon_name(NULL)
#> <TaxonName> none #> database: none