Learn R Programming

dendextend (version 1.18.1)

all_unique: Check if all the elements in a vector are unique

Description

Checks if all the elements in a vector are unique

Usage

all_unique(x, ...)

Value

logical (are all the elements in the vector unique)

Arguments

x

a vector

...

ignored.

See Also

Examples

Run this code

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))

Run the code above in your browser using DataLab