I have used the following code in order to produce a table showing me the number of duplicates for the serial variable of my dataframe:
des_serial_duplicates <- filter(des_selected2, duplicated(serial))
desinventar_duplicates <- des_serial_duplicates %>% count(serial)
head(desinventar_duplicates)
Yet, the desinventar_duplicates df created seems to include observations which appear only once (non duplicates, see for instance first two lines of head(desinventar_duplicates) here : r screenshot
Am reading the results incorrectly ? How can I solve this ?