Used to store the name of taxa. This is typically used to store where taxon names in taxon() objects.

taxon_name(name, database = NULL)

Arguments

name

(character) a taxonomic name. required

database

(character) database class object, optional

Value

An R6Class object of class TaxonName

See also

Examples

(poa <- taxon_name("Poa"))
#> <TaxonName> Poa #> database: none
(undef <- taxon_name("undefined"))
#> <TaxonName> undefined #> database: none
(sp1 <- taxon_name("species 1"))
#> <TaxonName> species 1 #> database: none
(poa_annua <- taxon_name("Poa annua"))
#> <TaxonName> Poa annua #> database: none
(x <- taxon_name("Poa annua L."))
#> <TaxonName> Poa annua L. #> database: none
x$name
#> [1] "Poa annua L."
x$database
#> NULL
(x <- taxon_name( "Poa annua", database_list$ncbi ))
#> <TaxonName> Poa annua #> 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