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

11 vues (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 5 Juil 2020
Commenté : alpedhuez le 5 Juil 2020
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?

Réponse acceptée

Steven Lord
Steven Lord le 5 Juil 2020
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.)

Plus de réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by