Postgres Find Duplicate Rows In R