Turtle, Observer, Patch

mode-of-patches [list of commands]

Parameters:
[list of commands] List of patch commands list of commands that evaluate to a number

Description:
Returns the mode of the given [list of commands] when evaluated across all the patches.

Examples:
mode-of-patches [food] returns the mode of the food value for all patches.

Notes:
Note: If [list of commands] contains no numbers, an error occurs. If some of the [list of commands], when evaluated, are not numbers, those values are ignored.

Related Commands:
average-of-patches max-of-patches median-of-patches min-of-patches mode-of-patches-with sdev-of-list sdev-of-patches sum-of-patches variance-of-patches