powered by
This function returns the mode for a given data frame.
mode(x, na.rm = FALSE)
This function returns the mode for a variable within a data frame or a list of values.
variable within data frame or a list of values.
remove the NAs, default is FALSE.
data <- mtcars mode(data$mpg)
Run the code above in your browser using DataLab