フィルターのクリア

Deleting duplicate observations from a dataset

2 ビュー (過去 30 日間)
Sebastiano delre
Sebastiano delre 2016 年 5 月 30 日
回答済み: Sebastiano delre 2016 年 5 月 31 日
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