Remove all unique rows

后端 未结 3 2017
灰色年华
灰色年华 2020-12-11 04:33

I am trying to figure out how to remove all unique rows, from a data frame, but if it has a duplicate, I want that to stay in. For Example - I want all columns from this wi

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 05:21

    Another option:

    subset(df,duplicated(col1) | duplicated(col1, fromLast=TRUE))
    

提交回复
热议问题