A fn for info_snippet(): get the lowest value from a column
A fn for info_snippet(): get the lowest value from a column
The snip_lowest() function can be used as an info_snippet() function (i.e., provided to fn) to get the lowest numerical, time value, or alphabetical value from a column in the target table.
snip_lowest(column)
Arguments
column: The target column
scalar<character> // required
The name of the column that contains the target values.
Returns
A formula needed for info_snippet()'s fn argument.
Examples
Generate an informant object, add a snippet with info_snippet() and snip_lowest() (giving us a method to get the lowest value in column a). Define a location for the snippet result in { } and then incorporate()
the snippet into the info text. Note here that the order of the info_columns() and info_snippet() calls doesn't matter.