powered by
Compute the sample mode
ds_mode(x, na.rm = FALSE)
a numeric vector containing the values whose mode is to be computed
a logical value indicating whether NA values should be stripped before the computation proceeds.
Mode of x
x
Any NA values are stripped from x before computation takes place.
mean median
mean
median
# NOT RUN { ds_mode(mtcars$mpg) ds_mode(mtcars$cyl) # }
Run the code above in your browser using DataLab