R/ds-describe.R
ds_mode.Rd
Compute the sample mode
ds_mode(data, x = NULL)
A numeric vector or data.frame.
data.frame
Column in data.
data
Mode of x
x
Any NA values are stripped from x before computation takes place.
mean median
mean
median
# vector ds_mode(mtcars$mpg) #> [1] 10.4 # data.frame ds_mode(mtcars, mpg) #> [1] 10.4