View source: R/find_duplicates.R
find_duplicates | R Documentation |
Function to detect and report elements with multiple higher assigments in a hierarchically structured dataframe
find_duplicates(x, ranks = NULL)
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 |
A dataframe of elements with multiple higher classifications and their ranks
# load dataset
data("brachios")
b_ranks <- c("phylum", "class", "order", "family", "genus")
# run function
flag <- find_duplicates(brachios, ranks = b_ranks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.