dup_: Check dataframe for duplicate keys

Description Usage Arguments Value Examples

View source: R/dup.R

Description

Check dataframe for duplicate keys

Usage

1
2
3
dup_(data, ..., .dots, wt = NULL, kable = TRUE)

dup(data, ..., wt = NULL, kable = TRUE)

Arguments

...

Variable names whose values are to be checked for duplication.

.dots

Quoted variable names whose values are to be checked for duplication.

wt

Optional weighting variable (as character) used to weight duplication rate diagnostics.

kable

Logical, whether to format table for Rmarkdown.

.data

The dataframe to check for duplicate cases, where duplication is specific to the variables listed in ....

Value

Invisible dataframe of duplicated cases.

Examples

1
2
3
4
5
d = data.frame(x = rep(1:10, 2), y = rep(1:5, 4), z = 1:20, a = c(1:15, 1:5))
dup(d, y, a)

#SE version
dup_(d, .dots = c("y", "a"))

rebelrebel04/xplor documentation built on May 27, 2019, 4:01 a.m.