# best_duplicate

    Code
      extract_duplicates(df1, id = "id")
    Output
        Row id item1 item2 item3 count_na
      1   1  1    NA    NA    NA        3
      2   4  1     2     2     2        0
      3   3  3     1     1     1        0
      4   5  3     3     3     3        0

