Deleting duplicate observations from a dataset

3 Ansichten (letzte 30 Tage)
Sebastiano delre
Sebastiano delre am 30 Mai 2016
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 30 Mai 2016
unique(pieceDB, 'postID')

Weitere Antworten (1)

Sebastiano delre
Sebastiano delre am 31 Mai 2016
Wowwww, much easier than I expected. Thanks much!

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by