Learn R Programming

taxa

This is an R package that provides classes to store and manipulate taxonomic data. Most of the classes can be used like base R vectors. This project is a partial rewrite of the previous version of taxa and is currently under development.

A note about recent changes:

This is beginning of a complete rewrite of the previous taxa package to make the more basic component classes more like base R vectors. The taxmap class is not yet reimplemented, but will be similar to the class in the previous versions of taxa. The old version of taxa has been incorporated into the metacoder package until this version of taxa is mature, at which time metacoder will also use this version.

Contributors

Comments and contributions

We welcome comments, criticisms, and especially contributions! GitHub issues are the preferred way to report bugs, ask questions, or request new features. You can submit issues here:

https://github.com/ropensci/taxa/issues

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for taxa in R doing citation(package = 'taxa')
  • Please note that this project is released with a Contributor Code of Conduct (see CONDUCT.md). By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('taxa')

Monthly Downloads

357

Version

0.4.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Zachary Foster

Last Published

February 20th, 2024

Functions in taxa (0.4.3)

delete_unused_class_taxa

Removes taxa from the taxonomy of a classification that are not used by any of the instances
duplicated_index

Returns the index of the first occurrence of each unique element
is_root

Test if taxa are roots
contains

dplyr select_helpers
is_stem

Check if taxa are stems
%>%

magrittr forward-pipe operator
%in%

Value matching for taxa package
database_ref

Database list
matches

dplyr select_helpers
check_taxon_rank_order

Check that order is ascending
classification

Taxon class
n_leaves

Number of leaves per taxon
impute_order_na

Fill in NA values in sequence
font_secondary

Font for secondary data
db_ref

Valid taxonomy databases
default_db_ref

Defines valid taxonomic databases
as_data_frame

Convert a taxa object to a data.frame
font_na

Font for NAs in print methods
interleave

Interleaves two vectors
duplicated_index_taxonomy

Returns the index of the first occurrence of each unique taxon in a taxonomy
new_taxon_authority

Minimal taxon_authority constructor
new_taxon_db

Minimal taxon_db constructor
font_tax_name

Taxon name formatting in print methods
internodes

Get internodes
font_punct

Punctuation formatting in print methods
new_taxonomy

Minimal taxonomy constructor
num_range

dplyr select_helpers
is_classification

Check if is a classification
is_taxon

Check if something is a taxon object
is_taxon_authority

Check if is a taxon_authority
leaves

Get leaves
printed_taxon_authority

Prepare taxon_authority for printing
is_taxon_rank

Check if something is a taxon_rank
printed_taxon_id

Prepare taxon_id for printing
ends_with

dplyr select_helpers
rank_ref

All known taxonomic ranks
limited_print

Print a subset of a character vector
roots

Get root taxa
is_taxon_rank_level

Check if is a taxon id
vec_cast.taxa_classification

taxa casting functions
is_taxon_db

Check if something is a taxon_db
is_taxon_id

Check if something is a taxon_id object
subtaxa

Get subtaxa
vec_ptype2.taxa_classification

taxa coercion functions
new_classification

Minimal classfication constructor
as_taxon

Convert to a taxon vector
new_taxon_db_def

Minimal taxon_db_def constructor
new_taxon_id

Minimal taxon_id constructor
everything

dplyr select_helpers
font_default

Default font
supertaxa

Get supertaxa
printed_taxon_rank

Prepare taxon_rank for printing
new_taxon

Minimal taxon constructor
printed_classification

Prepare classification for printing
is_internode

Check if taxa are internodes
printed_taxon_rank_level

Prepare taxon_rank_level for printing
printed_taxon

Prepare taxon for printing
is_leaf

Check if taxa are leaves
taxa_taxon-class

Taxon class
new_taxon_rank

Minimal taxon_rank constructor
new_taxon_rank_level

Minimal taxon_rank_level constructor
is_taxonomy

Check if something is a taxonomy
is_valid_regex

Check regex validity
taxa_taxon_authority-class

Taxon authority class
printed_taxonomy

Prepare taxonomy for printing
rank_level_color_funcs

Get font color for levels
one_of

dplyr select_helpers
taxon_id

Taxon ID class
n_subtaxa

Number of subtaxa per taxon
taxon_rank

Taxon rank class
tax_name.taxa_classification

Set and get taxon names
print_with_color

Print that works with color
n_supertaxa

Number of supertaxa per taxon
tax_auth.taxa_classification

Set and get taxon authorities
starts_with

dplyr select_helpers
stems

Get stems
tax_rank.taxa_classification

Set and get taxon ranks
taxa_taxon_db-class

Taxon database class
taxa_taxon_id-class

Taxon ID class
tax_db.taxa_classification

Set and get taxon ID databases
tax_author.taxa_classification

Set and get taxon authors
taxa_comparison_funcs

taxa comparison functions
tax_id.taxa_classification

Set and get taxon IDs
taxon

Taxon class
tax_cite.taxa_classification

Set and get taxon authority citations
tax_date.taxa_classification

Set and get taxon authority dates
taxon_db

Taxon database class
taxon_db_def

Taxon database definition class
taxon_authority

Taxon authority class
unname_fields

Remove names from fields in a vctrs rcrd
format.taxa_classification

taxa printing functions
taxa_taxon_rank-class

Taxon rank class
taxa_taxonomy-class

Taxonomy class
taxon_rank_level

Taxon rank level
[.taxa_classification

Taxonomy class