Skip to contents

Get Duplicates From a Vector

Usage

get_duplicates(x)

Arguments

x

An atomic vector

Value

A vector of the same type as x contain duplicate values

See also

Brings something to you!?!: get_constant_vars(), get_dataset(), get_source_vars()

Examples

get_duplicates(1:10)
#> integer(0)

get_duplicates(c("a", "a", "b", "c", "d", "d"))
#> [1] "a" "d"