A vector of numbers (typically integers for modal)
...
additional (vectors of) numbers
ties
character. Indicates how to treat ties. Either 'random', 'lowest', 'highest', or 'NA'
na.rm
Remove (ignore) NA values
aszero
logical. If TRUE, a zero is returned (rather than an NA) if the cv of single value is computed
Value
modal returns the mode, or modal (most frequent) value of a vector of values, ties are broken at random.
cv returns the coefficient of variation (expressed as a percentage). If there is only a single value, sd is NA
and cv returns NA if aszero=FALSE (the default). However, if (aszero=TRUE), cv returns 0.