Learn R Programming

taxonbridge (version 1.0.5)

get_inconsistencies: Detect candidate inconsistencies and ambiguity

Description

Detect candidate inconsistencies and ambiguity

Usage

get_inconsistencies(x, uninomials = TRUE, set = "intersect")

Arguments

x

A list consisting of tibble(s) that have been passed to get_validated().

uninomials

A logical indicating whether uninomials should be included in the detection (defaults to TRUE).

set

The type of set operation to be performed on x ("intersect", "union", or "setdiff"). Defaults to intersect.

Value

A character vector containing scientific names that exhibit inconsistency or ambiguity.

Details

This method will return the intersect, union, or set difference of a list of tibbles, and is meant to be used on lists of tibbles that have already been processed with get_validity(). Note: uninomials are single names (e.g., "Coenobitidae").

Examples

Run this code
# NOT RUN {
sample <- load_sample()
lineages <- get_lineages(sample)
kingdom <- get_validity(lineages, rank = "kingdom", valid = FALSE)
family <- get_validity(lineages, rank = "family", valid = FALSE)
candidates <- list(kingdom, family)
get_inconsistencies(candidates, uninomials = FALSE, set = "intersect")
# }

Run the code above in your browser using DataLab