powered by
Function to detect and report elements with multiple higher assigments in a hierarchically structured dataframe
find_duplicates(x, ranks = NULL)
A dataframe of elements with multiple higher classifications and their ranks
A hierarchically organised dataframe
The ranks in the dataframe in which to check for elements with multiple higher classifications. The top rank is ignored by default
# 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