list_duplicates {litteR} | R Documentation |
List Duplicates
Description
Lists all duplicates as a list of tuples.
Usage
list_duplicates(x, ...)
## S3 method for class 'character'
list_duplicates(x, ...)
## S3 method for class 'tbl'
list_duplicates(x, ...)
## S3 method for class 'data.frame'
list_duplicates(x, ...)
Arguments
x |
object of class |
... |
further arguments passed to or from other methods. |
Value
list
of row numbers with duplicates
Methods (by class)
-
list_duplicates(character)
: list duplicates for acharacter
vector. -
list_duplicates(tbl)
: lists duplicates for atibble
. -
list_duplicates(data.frame)
: lists duplicates for adata.frame
.
Examples
list_duplicates(c("a", "b", "c")) # list()
list_duplicates(c("a", "b", "a", "c")) # list(c(1, 3))
[Package litteR version 1.0.0 Index]