load("stormData"); summaryRegionCosts = groupsummary(stormData, 'Region',{'min','median','mean','max'}, 'Total_Cost') stormDataPos = stormData(stormData.Total_Cost> 0, :) summaryRegionPosCosts = groupsummary(stormDataPos, 'Region',{'min','median','mean','max'},'Total_Cost') This is the correct answer.
load("stormData"); summaryRegionCosts = groupsummary(stormData, 'Region',{"min","max","median","mean"} , 'Total_Cost'); stormDataPos = stormData.Total_Cost> 0 ; summaryRegion
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Teklebirhan Abraha
le 6 Sep 2022
Réponse apportée : Teklebirhan Abraha
le 10 Sep 2022
What is wrong with my code
l
load("stormData");
summaryRegionCosts = groupsummary(stormData, 'Region',{'min','median','mean','max'}, 'Total_Cost')
stormDataPos = stormData(stormData.Total_Cost> 0, :)
Total = stormData.Total_Cost>0;
summaryRegionPosCosts = groupsummary(stormData, 'Region',{'min','median','mean','max'},'Total')
0 commentaires
Réponse acceptée
Plus de réponses (1)
Stephen Tete
le 8 Sep 2022
Modifié(e) : Stephen Tete
le 8 Sep 2022
I’m not sure what your error is but I suggest you load with “readtable”
Else post your error let’s see
2 commentaires
Stephen Tete
le 10 Sep 2022
Great, kindly post your solution here as others may find it helpful. Thank you
Voir également
Catégories
En savoir plus sur Mathematics and Optimization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!