对于数据框
first = c(5,11,111,1111,564,877)
second = c(1,1,2,2,3,3)
sample <- data.frame(first,second)
first second
1 5 1
2 11 1
3 111 2
4 1111 2
5 564 3
6 877 3
我想从dataframe
中删除column2中第一次出现的元素 first second
1 11 1
2 1111 2
3 877 3