Returns the measures of location such as mean, median & mode.

ds_measures_location(data, column, trim = 0.05)

Arguments

data

A data.frame or tibble.

column

Column in data.

trim

The fraction of values to be trimmed before computing the mean.

Examples

ds_measures_location(mtcarz, mpg)
#> # A tibble: 1 x 4 #> mean trim_mean median mode #> <dbl> <dbl> <dbl> <dbl> #> 1 20.1 20.0 19.2 10.4