Effacer les filtres
Effacer les filtres

load("stormData"); summaryRegionCosts = groupsummary(stormData, 'Region',{​"min","max​","median"​,"mean"} , 'Total_Cost'); stormDataPos = stormData.Total_Cost> 0 ; summaryRegion

3 vues (au cours des 30 derniers jours)
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')

Réponse acceptée

Teklebirhan Abraha
Teklebirhan Abraha le 10 Sep 2022
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.

Plus de réponses (1)

Stephen Tete
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
Teklebirhan Abraha
Teklebirhan Abraha le 10 Sep 2022
Modifié(e) : Teklebirhan Abraha le 10 Sep 2022
I solved it. The problem was on the last line. Thanks for the comment.
Stephen Tete
Stephen Tete le 10 Sep 2022
Great, kindly post your solution here as others may find it helpful. Thank you

Connectez-vous pour commenter.

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!

Translated by