Pivot table with different operations for columns

조회 수: 13 (최근 30일)
alpedhuez
alpedhuez 2017년 12월 27일
댓글: alpedhuez 2017년 12월 28일
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일
Look at using a timetable, and look at using varfun with year/month as your grouping variable(s).

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by