MATLAB Answers

Deleting duplicate observations from a dataset

4 views (last 30 days)
I have a large dataset and I want to delete duplicate observations. I do not want to use the function unique because it compares all values of the variables and it is slow. I just want to use the variable PostID of the observations and delete duplicates. I attach a fraction of the dataset. Thank you for your help.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 30 May 2016
unique(pieceDB, 'postID')

  0 Comments

Sign in to comment.

More Answers (1)

Sebastiano delre
Sebastiano delre on 31 May 2016
Wowwww, much easier than I expected. Thanks much!

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags