필터 지우기
필터 지우기

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