Mode of a List?

I would like to be able to analyze a list of data and see the most frequently occurring number or string in a list. Does anyone know an efficient way to program this?

Look at the GROUP BY block in the Frequency Distribution Analysis library.

Take this block image
from the Frequency Distribution Analysis library

col1: values
col2: occurences of the values

After this, you can sort the result...

If your list is a list of list, just flatten your list before analyzing it...

or this if you want to keep the most:
use the block item (1) of list

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.