Kindly help me with this problem of groupsummary

조회 수: 2 (최근 30일)
Umair Ejaz
Umair Ejaz 2022년 9월 6일
답변: Sumon 2023년 3월 20일
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');

답변 (2개)

Sumon
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');

VBBV
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

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by