How to sum values from a table by category

9 vues (au cours des 30 derniers jours)
Matías
Matías le 16 Nov 2022
Commenté : Matías le 21 Nov 2022
I have this table where we have the damage caused by natural events by state and by month. I removed the months column, but I need to calculate the total damage caused by each state. In this table it is shown separately and I don't know how I can do this sum.

Réponse acceptée

Cris LaPierre
Cris LaPierre le 16 Nov 2022
Modifié(e) : Cris LaPierre le 16 Nov 2022
I would use groupsummary. You may be interested in our Performing Calculations by Category video from our Exploratory Data Analysis course in Coursera. The example used is property cost resulting from weather events.
  1 commentaire
Matías
Matías le 21 Nov 2022
Thank you for your reply ! This helped me

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by