all_unique: Check if all values are unique

View source: R/all_unique.R

all_uniqueR Documentation

Check if all values are unique

Description

Checking if all values are unique can be a good step in QC to ensure entries are not duplicated. If passed a list, the input is first flattened (which may result in type casting).

Usage

all_unique(vec)

Arguments

vec

A vector or list.

Examples

all_unique(c(2,1,3))
all_unique(c(1,1,2))
all_unique(list(1, "1", 2))

overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.