0

My aim is to search for all duplicates of observations in a dataframe using R. the first column of my dataframe contains a character string of 15 numbers (observation-ID). some of these observation-IDs occur more then ones and contain diffrent information for the observed variables. I want to extract all duplicates (including the first one) into a new dataframe, so i can choose the most plausible one.

duplicated() just extracts the second, third, ... observation that is duplicated unique() extracts the first observation of duplicates. But maybe the first duplicate includes more information or is more plausible.

spkohl
  • 1
  • 1

0 Answers0