summary.last Function (GPL)

Syntax

summary.last(<algebra>)

or

summary.last(<binning function>)

or

summary.last(<statistic function>)

<algebra>. Graph algebra, such as x*y. Refer to Brief Overview of GPL Algebra for an introduction to graph algebra.

<binning function>. A binning function.

<statistic function>. Another statistic function. The result of the embedded statistic is used to calculate summary.max.

Description

Gets the last value that appears in the data. If the function is evaluating graph algebra, the last value of the analysis variable is returned for each subgroup. For more information about analysis variables, see the discussion in Brief Overview of GPL Algebra .

Examples

Figure 1. Example: Calculating the last salary value for each jobcat category
ELEMENT: interval(position(summary.last(jobcat*salary)))

Statistic Functions

See GPL Functions .