Turtle and Observer Command

average-of-patches [list of commands]

Returns the numerical average of the [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:

average-of-patches [color] returns the average of the color numbers of all of the patches.

Related commands:
average-of-list average-of-turtles