Given an array of values and elements, calculates some summary statistics of some columns

applyInsert(vec, var_cats, a_func)

Arguments

vec

An array of values and elements

var_cats

The `Categories` object that corresponds to the object `vec`

a_func

A function usually to calculates a summary statistic

Value

If `vec` has three dimentions, a row that results from applying `a_func` to each column of each object of the third dimention of `vec`; otherwise, a row that results from applying `a_func` to each column of `vec`