ds_mode {descriptr} | R Documentation |
Compute the sample mode
ds_mode(x, na.rm = FALSE)
x |
a numeric vector containing the values whose mode is to be computed |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
Any NA values are stripped from x
before computation
takes place.
Mode of x
ds_mode(mtcars$mpg)
ds_mode(mtcars$cyl)