
Separate duplicated data frame rows from rows with no duplicates
Source:R/get_comparison.R
find_dups.RdSeparates a data frame into sub-data frames based on types of row duplication
or lack thereof. Also identifies NA values in id_cols.
Value
a names list with four elements:
exact_dups: rows which were duplicated for every value, there will be one distinct row inexact_dupsfor each case and the columnnwill list how many occurences of the row were indf.id_dups: rows which were duplicated based onid_colsbut had other values that differed, the columnncontains how many ID duplicates of one ID exist indfid_NA: rows which had anNAvalue in aid_colscolumnno_dups: this isdfwith allid_dupsrow removed and only one copy of eachexact_dupsrow.