get_mode: A convenience function that returns the mode
Description
A convenience function that returns the mode
Usage
get_mode(x, na.rm = TRUE)
Value
a data.frame or vector showing the mode of the variable(s)
Arguments
x
The dataframe or vector for which the mode is required.
na.rm
Logical. Should `NA`s be dropped? Defaults to `TRUE`
Details
Useful when used together with get_stats in a pipe fashion.
These functions are for exploratory data analysis
The smallest number is returned if there is a tie in values
The function is currently slow for greater than 300,000 rows. It may take up to a minute.
may work with inaccuracies. By default, NAs are discarded.