find_duplicates {fossilbrush}R Documentation

find_duplicates

Description

Function to detect and report elements with multiple higher assigments in a hierarchically structured dataframe

Usage

find_duplicates(x, ranks = NULL)

Arguments

x

A hierarchically organised dataframe

ranks

The ranks in the dataframe in which to check for elements with multiple higher classifications. The top rank is ignored by default

Value

A dataframe of elements with multiple higher classifications and their ranks

Examples

# load dataset
data("brachios")
b_ranks <- c("phylum", "class", "order", "family", "genus")
# run function
flag <- find_duplicates(brachios, ranks = b_ranks)

[Package fossilbrush version 1.0.3 Index]