You are here: ListsListHistogrammer

ListHistogrammer

Computes a histogram of the values found in a list, and returns these in a new list attribute on the feature.

Parameters

Usage Notes

If the source list did not have elements, a new list will not be created and this transformer will have made no changes to the feature.

Example

If a feature with this list enters this transformer:

somelist{0}.val = 'apple'

somelist{1}.val = 'donut'

somelist{2}.val = 'aardvark'

somelist{3}.val = 'apple'

somelist{4}.val = 'aardvark'

somelist{5}.val = 'apple'

the resulting feature will have this list attribute:

_histogram{0}.value = 'apple'

_histogram{0}.count = 3

_histogram{1}.value = 'aardvark'

_histogram{1}.count = 2

_histogram{2}.value = 'donut'

_histogram{2}.count = 1

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Lists

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.