check_delim | R Documentation |
check_delim()
checks if two or more species delimitation outputs have
differences in its dimensions, labels, and values.
check_delim(list)
list |
a list containing two or more species delimitation outputs to check. |
check_delim()
will check if two or more species delimitation outputs have
different dimensions (rows, columns), if labels are the same or if there are
any duplicated or absent labels, and if there are any NA values or if partitions
were set using non numeric values. If TRUE
for any of the cases listed above,
check_delim()
will return an error.
A single logical value, TRUE
or FALSE
.
Pedro S. Bittencourt, Rupert A. Collins.
# create dummy delimitation outputs
delim_1 <- tibble::tibble(
labels = paste0("seq", 1:10),
method_A = c(rep(1, 5), rep(2, 5))
)
delim_2 <- tibble::tibble(
labels = paste0("seq", 1:10),
method_B = c(rep(1, 3), rep(2, 2), rep(3, 5))
)
delim_3 <- tibble::tibble(
labels = paste0("seq", 1:10),
method_C = c(rep(1, 3), rep(2, 2), rep(3, 3), rep(4, 2))
)
# check outputs
check_delim(list(delim_1, delim_2, delim_3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.