taxa0.4.4 package

Classes for Storing and Manipulating Taxonomic Data

as_data_frame

Convert a taxa object to a data.frame

as_taxon

Convert to a taxon vector

check_taxon_rank_order

Check that order is ascending

classification

Taxon class

contains

dplyr select_helpers

database_ref

Database list

db_ref

Valid taxonomy databases

default_db_ref

Defines valid taxonomic databases

delete_unused_class_taxa

Removes taxa from the taxonomy of a classification that are not used b...

duplicated_index

Returns the index of the first occurrence of each unique element

duplicated_index_taxonomy

Returns the index of the first occurrence of each unique taxon in a ta...

ends_with

dplyr select_helpers

everything

dplyr select_helpers

font_default

Default font

font_na

Font for NAs in print methods

font_punct

Punctuation formatting in print methods

font_secondary

Font for secondary data

font_tax_name

Taxon name formatting in print methods

grapes-greater-than-grapes

magrittr forward-pipe operator

grapes-in-grapes

Value matching for taxa package

impute_order_na

Fill in NA values in sequence

interleave

Interleaves two vectors

internodes

Get internodes

is_classification

Check if is a classification

is_internode

Check if taxa are internodes

is_leaf

Check if taxa are leaves

is_root

Test if taxa are roots

is_stem

Check if taxa are stems

is_taxon

Check if something is a taxon object

is_taxon_authority

Check if is a taxon_authority

is_taxon_db

Check if something is a taxon_db

is_taxon_id

Check if something is a taxon_id object

is_taxon_rank

Check if something is a taxon_rank

is_taxon_rank_level

Check if is a taxon id

is_taxonomy

Check if something is a taxonomy

is_valid_regex

Check regex validity

leaves

Get leaves

limited_print

Print a subset of a character vector

matches

dplyr select_helpers

n_leaves

Number of leaves per taxon

n_subtaxa

Number of subtaxa per taxon

n_supertaxa

Number of supertaxa per taxon

new_classification

Minimal classfication constructor

new_taxon

Minimal taxon constructor

new_taxon_authority

Minimal taxon_authority constructor

new_taxon_db

Minimal taxon_db constructor

new_taxon_db_def

Minimal taxon_db_def constructor

new_taxon_id

Minimal taxon_id constructor

new_taxon_rank

Minimal taxon_rank constructor

new_taxon_rank_level

Minimal taxon_rank_level constructor

new_taxonomy

Minimal taxonomy constructor

num_range

dplyr select_helpers

one_of

dplyr select_helpers

print_with_color

Print that works with color

printed_classification

Prepare classification for printing

printed_taxon

Prepare taxon for printing

printed_taxon_authority

Prepare taxon_authority for printing

printed_taxon_id

Prepare taxon_id for printing

printed_taxon_rank

Prepare taxon_rank for printing

printed_taxon_rank_level

Prepare taxon_rank_level for printing

printed_taxonomy

Prepare taxonomy for printing

rank_level_color_funcs

Get font color for levels

rank_ref

All known taxonomic ranks

roots

Get root taxa

starts_with

dplyr select_helpers

stems

Get stems

subtaxa

Get subtaxa

supertaxa

Get supertaxa

tax_auth

Set and get taxon authorities

tax_author

Set and get taxon authors

tax_cite

Set and get taxon authority citations

tax_date

Set and get taxon authority dates

tax_db

Set and get taxon ID databases

tax_id

Set and get taxon IDs

tax_name

Set and get taxon names

tax_rank

Set and get taxon ranks

taxa_casting_funcs

taxa casting functions

taxa_coercion_funcs

taxa coercion functions

taxa_comparison_funcs

taxa comparison functions

taxa_printing_funcs

taxa printing functions

taxa_taxon

Taxon class

taxa_taxon_authority

Taxon authority class

taxa_taxon_db

Taxon database class

taxa_taxon_id

Taxon ID class

taxa_taxon_rank

Taxon rank class

taxa_taxonomy

Taxonomy class

taxon

Taxon class

taxon_authority

Taxon authority class

taxon_db

Taxon database class

taxon_db_def

Taxon database definition class

taxon_id

Taxon ID class

taxon_rank

Taxon rank class

taxon_rank_level

Taxon rank level

taxonomy

Taxonomy class

unname_fields

Remove names from fields in a vctrs rcrd

Provides classes for storing and manipulating taxonomic data. Most of the classes can be treated like base R vectors (e.g. can be used in tables as columns and can be named). Vectorized classes can store taxon names and authorities, taxon IDs from databases, taxon ranks, and other types of information. More complex classes are provided to store taxonomic trees and user-defined data associated with them.

  • Maintainer: Zachary Foster
  • License: MIT + file LICENSE
  • Last published: 2025-07-28