Kindly help me with this problem of groupsummary

2 visualizzazioni (ultimi 30 giorni)
Umair Ejaz
Umair Ejaz il 6 Set 2022
Risposto: Sumon il 20 Mar 2023
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');

Risposte (2)

Sumon
Sumon il 20 Mar 2023
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');

VBBV
VBBV il 15 Dic 2022
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

Community Treasure Hunt

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

Start Hunting!

Translated by