calc_group_stat function

Apply a function to groups of columns