all_unique: Check if all values in a vector are unique

View source: R/utils_check.R

all_uniqueR Documentation

Check if all values in a vector are unique

Description

Check if all values in a vector are unique

Usage

all_unique(x)

Arguments

x

the vector to check

Value

TRUE if all values in the vector are unique

Examples

all_unique(c(1, 2, 3)) # TRUE
all_unique(c(1, 2, 2)) # FALSE

Shians/CellBench documentation built on Oct. 16, 2023, 7:54 a.m.