Mwnci mode() Function

Syntax

mode(string)

Description

The mode() function returns the mode (central tendency) of the given numeric or nominal data set.

Example

include("stats")
println(mode([1, 3, 3, 3, 5, 7, 7 9, 11]))
println(mode([1, 1, 3, -5, 7, -9, 11]))
println(mode(["red", "green", "blue", "red"])) 


3
1
red