Remove duplicates column combinations from a dataframe in R

前端 未结 4 1074
夕颜
夕颜 2020-12-06 14:06

I want to remove duplicate combinations of sessionid, qf and qn from the following data

               sessionid             qf        qn         city
1  9         


        
4条回答
  •  感情败类
    2020-12-06 15:06

    In your example the repeated rows were entirely repeated. unique works with data.frames.

    udf <- unique( my.data.frame )
    

    As for sorting... joran just posted the answer.

提交回复
热议问题