Skip to contents

This function returns a vector of the duplicated values in the input vector.

Usage

util_get_duplicated_values(x)

Arguments

x

A vector.

Value

A vector of the duplicated values in the input vector.

Examples

if(interactive()) {
util_get_duplicated_values(c(1, 2, 2))  # returns 2
util_get_duplicated_values(c(1, 2, 3))  # returns NULL
}