mode | R Documentation |
This function returns the mode for a given data frame.
mode(x, na.rm = FALSE)
x |
variable within data frame or a list of values. |
na.rm |
remove the NAs, default is FALSE. |
This function returns the mode for a variable within a data frame or a list of values.
data <- mtcars
mode(data$mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.