Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

duplicated2

Find duplicates in a vector


Description

This will find all duplicates in a run, unlike duplicated which finds duplicates globally.

Usage

duplicated2(x)

Arguments

x

a vector

Author(s)

Josh O'Brien, Neal Fultz

References

Examples

duplicated2(c(2,3,3,2,2,3,3,3,3,2,2))

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.