what are the functions that one can use for unstack aggregate functions?

조회 수: 11 (최근 30일)
I use unstack to create a pivot table.
https://www.mathworks.com/help/matlab/ref/unstack.html
what are the functions that one can use for 'AggregationFunction' in addition to @mean, @sum, @unique seen in the above page?

채택된 답변

Steven Lord
Steven Lord 2020년 7월 5일
Any function that can be applied "to rows from the same group that have the same value in ivar" and return a scalar, and that can be applied to an empty array and returns either an empty array or a scalar (to handle the case where a group has no data.)

추가 답변 (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