findAllDup: Find locations of all duplicates, not just the first

View source: R/findAllDup.R

findAllDupR Documentation

Find locations of all duplicates, not just the first

Description

Using the base-R function duplicated will find the 2nd, 3rd, etc. instance of a duplicate but not all instances of a duplicate. findAllDup returns the locations of all duplicates.

Usage

findAllDup(x)

Arguments

x

A vector

Examples

findAllDup(c("Lightning", "Theo", "Kiki", "Lightning"))


shirewoman2/LaurasHelpers documentation built on Oct. 22, 2023, 2:07 p.m.