mode {vannstats} | R Documentation |
Mode Function
Description
This function returns the mode for a given data frame.
Usage
mode(x, na.rm = FALSE)
Arguments
x |
variable within data frame or a list of values. |
na.rm |
remove the NAs, default is FALSE. |
Value
This function returns the mode for a variable within a data frame or a list of values.
Examples
data <- mtcars
mode(data$mpg)
[Package vannstats version 1.3.4.14 Index]