Description Usage Arguments Examples
Returns a boolean value indicating whether all values of a provided vector are unique. Just a simple wrapper function for 'unique()'.
1 |
vector |
An atomic vector. |
1 2 3 4 5 6 7 | unique.vec <- 1:10
all_unique(unique.vec)
[1] TRUE
duplicate.vec <- c(unique.vec, 1)
all_unique(duplicate.vec)
[1] FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.