View source: R/misc.utilities.R
all_identical | R Documentation |
Test if all items in a vector or a list are identical.
all_identical(x)
x |
a vector or a list |
TRUE
if all elements of x
are identical to each other.
identical
stopifnot(!all_identical(1:3))
stopifnot(all_identical(list("a", "a", "a")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.