powered by
Compute the sample mode
stat_mode(x)
a numeric vector containing the values whose mode is to be computed
Mode of x
x
Any NA values are stripped from x before computation takes place.
mean median
mean
median
stat_mode(mtcars$mpg) stat_mode(mtcars$cyl)
Run the code above in your browser using DataLab