How do I see how many duplicate rows there are in the bank-marketing dataset?
and how do I get rid of them?
Thank you!

 Réponse acceptée

Steven Lord
Steven Lord le 6 Nov 2020

0 votes

Use unique with the 'rows' option or uniquetol with the 'ByRows', true name-value pair.

4 commentaires

Yooya yooya
Yooya yooya le 6 Nov 2020
y=unique(bank,'rows','stable')
I did this but is there a way I can count how many unique rows there are?
size(y, 1)
height(y) % if you're using a sufficiently new release of MATLAB
Yooya yooya
Yooya yooya le 7 Nov 2020
  • thank you
Steven Lord
Steven Lord le 7 Nov 2020
If the information I've given you resolves your question, please mark the answer Accepted so we know that it has been answered sufficiently well. Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by