Learn R Programming

admiraldev (version 1.2.0)

get_duplicates: Get Duplicates From a Vector

Description

Get Duplicates From a Vector

Usage

get_duplicates(x)

Value

A vector of the same type as x contain duplicate values

Arguments

x

An atomic vector

See Also

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

Examples

Run this code
get_duplicates(1:10)

get_duplicates(c("a", "a", "b", "c", "d", "d"))

Run the code above in your browser using DataLab