is_all_distinct: Check if all values in a vector are distinct

View source: R/predicates.R

is_all_distinctR Documentation

Check if all values in a vector are distinct

Description

Check if all values in a vector are distinct

Usage

is_all_distinct(x)

Arguments

x

A vector

Value

TRUE if the vector has all unique values

Examples

is_all_distinct(c(1:5)) # TRUE
is_all_distinct(c(1, 1, 2)) # FALSE

schematic documentation built on June 9, 2025, 5:10 p.m.