Most frequent value

Description

Returns the most frequent value in a vector

Usage

1
mostFrequent(vec, w = NA)

Arguments

vec

The vector of labels

w

The weights of each elements (currently not used)