Statistical mode of a vectorSource:
This function returns the mode of vectors. That is to say, for any given vector of values, it returns the value that appears most frequently.
The function works with strings, numerical and mixed inputs.
NA values are treated as distinct values.
Logical value indicating whether
NAvalues should be omitted. Default is
Logical value indicating whether only the first mode should be returned if
xhas multiple modes (i.e. there are multiple values with the highest number of observations). Default is FALSE.