prepare_comparable_rank_dist: Get comparable NCBI and GBIF taxonomic ranks

View source: R/prepare_methods.R

prepare_comparable_rank_distR Documentation

Get comparable NCBI and GBIF taxonomic ranks

Description

Get comparable NCBI and GBIF taxonomic ranks

Usage

prepare_comparable_rank_dist(x, GBIF = TRUE, NCBI = TRUE)

Arguments

x

A tibble created with load_taxonomies() or load_population() or load_sample().

GBIF

A logical indicating whether GBIF taxonomic ranks are to be retrieved.

NCBI

A logical indicating whether NCBI taxonomic ranks are to be retrieved.

Details

This method, like prepare_rank_dist(), returns taxonomic ranks aggregated by frequency for data derived from the NCBI, the GBIF, or both. However, this method only retains taxonomic ranks that have at least one NCBI and one GBIF representative.

Value

A list of tibble(s) assigned to the S3 class one_rank or to the S3 class all_ranks.

Examples

prepare_comparable_rank_dist(load_sample())
prepare_comparable_rank_dist(get_status(load_sample(), "accepted"), NCBI = FALSE)

MoultDB/moultdbtools documentation built on Feb. 2, 2024, 5:21 p.m.