Description Usage Arguments Details Value Author(s) See Also Examples
Takes in a data and key, and returns data with duplicate observations by key removed
1 |
data |
a data.frame or data.table |
by |
a character vector of keys to be used |
Remove duplicate observations by key(s) is what this function does. How it is
different from other functions that remove duplicates is that rmdupkey
works for both 'data.frame' and 'data.table', and it also returns the duplicated
observations.
Many a times we want to go back to the duplicated observations and see why that duplication occured. One can pick the duplicated observations using the code given in example.
a two element list: unique data and duplicate data
Akash Jain
randomise
, factorise
, rmdupobs
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.