Commonest

Commonest[list]
gives a list of the elements that are the most common in list.

Commonest[list,n]
gives a list of the n most common elements in list.

DetailsDetails

  • When several elements occur with equal frequency, Commonest[list,] picks first the ones that occur first in list.
  • Commonest[list,n] returns the n commonest elements in the order they appear in list.
Introduced in 2007
(6.0)