dups: find dups in different ways

Description Usage Arguments Value Examples

View source: R/dups.R

Description

This functions adds functionality lacking in data.table and other packages that are concerned with dups

do different stuff, yes, that's what happens!

Usage

1
dups(DT, by = colnames(DT), var = NULL)

Arguments

DT

a data.table with suspcted dups

by

the columns by which the dups should be detected

var

should the output be a variabel that designates duplicates (TRUE) / unique(FALSE). If set, the function does NOT return an output, but modifices the data.table by reference and adds the variabel

Value

This function returns a data.table with all the dups by the specified columns, instead of 'all the dups minus one' as is standard in data.table. also sets the key to the "by" variables for code efficiency.

Examples

1
2
3
4
## Not run: 
dups(dupstestdata)

## End(Not run)

emilBeBri/dttools documentation built on April 21, 2021, 5:44 a.m.