标签: r duplicates
我有这个数据集:
ID <- c(1010101,1010101, 1010333, 1010999) Age <- c(15,17,18,35) Sex <- c("Female", "Male", "Female", "Female") DF <- data.frame(ID, Age, Sex)
我想提取重复的数据,我的预期结果是:
1 1010101 15 Female 2 1010101 17 Male