Description Usage Arguments Value Examples
This functions adds functionality lacking in data.table and other packages that are concerned with dups
do different stuff, yes, that's what happens!
1 |
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 |
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.
1 2 3 4 | ## Not run:
dups(dupstestdata)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.