Pivot table with different operations for columns

Suppose I have a table that rows represent yyyymmdd and columns represent height and weights.
I want to create a pivot table that rows represent yyyymm and columns represent average of heights and sum of weights (say).
Please advise how to proceed.

 채택된 답변

Peter Perkins
Peter Perkins 2017년 12월 28일

0 개 추천

Look at using a timetable, and look at using varfun with year/month as your grouping variable(s).

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

태그

질문:

2017년 12월 27일

댓글:

2017년 12월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by