Turtle and Observer Command

mode-of-patches [list of commands]

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

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.

Examples:

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

Related commands:
mode-of-list mode-of-turtles