Used for finding the most frequent cluster for each z
Mode(x)
x
Numeric vector
mode Numeric scalar, most frequent element in x