groupsummary
datafun · scripts/datafun/groupsummary.m
GROUPSUMMARY Per-group summary (MATLAB R2026a compat / nexus#2330).
G = groupsummary (T, groupvars)
G = groupsummary (T, groupvars, method)
G = groupsummary (T, groupvars, method, datavars)
B = groupsummary (A, groupvars, method)
method may be a named method, a function handle, or a cell array of
those. Named methods: sum, mean, median, mode, var, std, min, max,
range, nummissing, numunique, nnz, all. Output variable names follow
MATLAB: method_datavar (e.g. mean_x, std_x). GroupCount is always
present. Named methods omit NaN (except nummissing); function handles
receive the raw group data.