replicates | R Documentation |
Subset data.frame or data.table for all rows duplicated in one or more columns
replicates(df, columns)
df |
data.frame or data.table |
columns |
column or vector of columns to look for duplicate combinations in |
Returns duplicated rows within df based on the specified columns as data.frame
Diane Hatziioanou
# df_duplicates <- replicates(df, c("Name","DOB"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.