Computes the mode (most frequent value) of an atomic vector.
Arguments
- x
(
vector()
).- ties_method
(
character(1)
)
Handling of ties. One of "first", "last" or "random" to return the first tied value, the last tied value, or a randomly selected tied value, respectively.- na_rm
(
logical(1)
)
IfTRUE
, remove missing values prior to computing the mode.