View source: R/color_branches.R
all_unique | R Documentation |
Checks if all the elements in a vector are unique
all_unique(x, ...)
x |
a vector |
... |
ignored. |
logical (are all the elements in the vector unique)
https://www.mail-archive.com/r-help@r-project.org/msg77592.html OLD (no longer working): https://r.789695.n4.nabble.com/Is-there-a-function-to-test-if-all-the-elements-in-a-vector-are-unique-td931833.html
unique
all_unique(c(1:5, 1, 1))
all_unique(c(1, 1, 2))
all_unique(c(1, 1, 2, 3, 3, 3, 3))
all_unique(c(1, 3, 2))
all_unique(c(1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.