is_unique: Test which values are/are not unique in a vector

Description Usage Arguments Value Examples

View source: R/is_unique.R

Description

Test which values are/are not unique in a vector

Usage

1
2
3

Arguments

x

A vector

Value

Vector of logical values indicating TRUE for values which are unique.

Examples

1
2
3
4
5
6
7
8
9
is_unique(1:10)

is_unique(c(1, 1, 1))

x <- c(1, 2, 3, 4, 3, 3, 1)
rez <- is_unique(x)
rez

data.frame(x = x, is_unique = rez)

GegznaV/BioStat documentation built on Aug. 14, 2020, 9:30 p.m.