Deleting duplicate observations from a dataset

3 visualizaciones (últimos 30 días)
Sebastiano delre
Sebastiano delre el 30 de Mayo de 2016
Respondida: Sebastiano delre el 31 de Mayo de 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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Mayo de 2016
unique(pieceDB, 'postID')

Más respuestas (1)

Sebastiano delre
Sebastiano delre el 31 de Mayo de 2016
Wowwww, much easier than I expected. Thanks much!

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by