Deleting duplicate observations from a dataset

5 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2016-5-30
unique(pieceDB, 'postID')

更多回答(1 个)

Sebastiano delre
Sebastiano delre 2016-5-31
Wowwww, much easier than I expected. Thanks much!

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by