Learn R Programming

fossilbrush (version 1.0.6)

find_duplicates: find_duplicates

Description

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

Usage

find_duplicates(x, ranks = NULL)

Value

A dataframe of elements with multiple higher classifications and their ranks

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

Examples

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

Run the code above in your browser using DataLab