Search Locate Previous Next Contents

GroupFunction – grouping function

When you set a grouping variable (for example you might Barchart Sales grouped by Region) the default is to sum the data into each category defined by the group code. This will give one bar for each unique value in Region, each bar being the total sales for that region. The functions which you can use here are:


ch.Set 'head' 'Mean Barley Yield by Year'
ch.Set 'gfn' 'mean'
ch.Set 'gvar' year
ch.Bar yield

All these functions take account of the current Missing Value setting, so totals and averages will correctly omit missing data.

See also ...
GroupBy – group variable
MissingValue – missing value(s)


Continue to: GroupGap – inter-group gap
© Copyright Causeway Graphical Systems Ltd 2003