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
5 ビュー (過去 30 日間)
古いコメントを表示
Teklebirhan Abraha
2022 年 9 月 6 日
回答済み: Teklebirhan Abraha
2022 年 9 月 10 日
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 件のコメント
採用された回答
その他の回答 (1 件)
Stephen Tete
2022 年 9 月 8 日
編集済み: Stephen Tete
2022 年 9 月 8 日
I’m not sure what your error is but I suggest you load with “readtable”
Else post your error let’s see
2 件のコメント
Stephen Tete
2022 年 9 月 10 日
Great, kindly post your solution here as others may find it helpful. Thank you
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!