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