FindDups {DataCombine} | R Documentation |
Find duplicated values in a data frame and subset it to either include or not include them.
Description
Find duplicated values in a data frame and subset it to either include or not include them.
Usage
FindDups(data, Vars, NotDups = FALSE, test = FALSE, ...)
Arguments
data |
a data frame to select the duplicated values from. |
Vars |
character vector of variables in |
NotDups |
logical. If |
test |
logical. If |
... |
arguments to pass to |
Value
a data frame, unless test = TRUE
and there are duplicates.
Examples
Data <- data.frame(ID = c(1, 1, 2, 2), Value = c(1, 2, 3, 4))
FindDups(Data, Vars = 'ID')
[Package DataCombine version 0.2.21 Index]