No matches were found for subject:"\[R\] Remove duplicates from a data frame but with some special requirements"