Kindly help me with this problem of groupsummary
2 次查看(过去 30 天)
显示 更早的评论
load("stormData");
summaryRegionCosts = groupsummary(stormData, 'Region',{"min","max","median","mean"} , 'Total_Cost');
stormDataPos = stormData.Total_Cost> 0 ;
summaryRegionPosCosts = groupsummary(stormData, 'Region', {"min","max","median","mean"},'stormDataPos');
0 个评论
回答(2 个)
Sumon
2023-3-20
summaryRegionCosts = groupsummary(stormData, 'Region', ["min","median","mean","max"], 'Total_Cost');
idx = stormData.Total_Cost> 0;
stormDataPos= stormData(idx,:);
summaryRegionPosCosts = groupsummary(stormDataPos,'Region',["min","median","mean","max"],'Total_Cost');
0 个评论
VBBV
2022-12-15
TT = load("stormData");
summaryRegionCosts = groupsummary(TT, 'Region',{"min","max","median","mean"} , 'Total_Cost');
stormDataPos = stormData.Total_Cost> 0 ;
summaryRegionPosCosts = groupsummary(stormData, 'Region', {"min","max","median","mean"},'stormDataPos');
Load the data into variable TT and call it in groupsummary
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!