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!