prepare_comparable_rank_dist {taxonbridge}R 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)

[Package taxonbridge version 1.2.2 Index]