FindDups | R Documentation |
Find duplicated values in a data frame and subset it to either include or not include them.
FindDups(data, Vars, NotDups = FALSE, test = FALSE, ...)
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 |
a data frame, unless test = TRUE
and there are duplicates.
Data <- data.frame(ID = c(1, 1, 2, 2), Value = c(1, 2, 3, 4))
FindDups(Data, Vars = 'ID')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.