Returns the measures of location such as range, variance and standard deviation.

ds_measures_variation(data, ...)

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

Examples

ds_measures_variation(mtcarz)
#> # A tibble: 6 x 7 #> var range iqr variance sd coeff_var std_error #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 disp 401. 205. 15361. 124. 53.7 21.9 #> 2 drat 2.17 0.840 0.286 0.535 14.9 0.0945 #> 3 hp 283 83.5 4701. 68.6 46.7 12.1 #> 4 mpg 23.5 7.38 36.3 6.03 30.0 1.07 #> 5 qsec 8.40 2.01 3.19 1.79 10.0 0.316 #> 6 wt 3.91 1.03 0.957 0.978 30.4 0.173
ds_measures_variation(mtcarz, mpg)
#> # A tibble: 1 x 7 #> var range iqr variance sd coeff_var std_error #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 mpg 23.5 7.38 36.3 6.03 30.0 1.07
ds_measures_variation(mtcarz, mpg, disp)
#> # A tibble: 2 x 7 #> var range iqr variance sd coeff_var std_error #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 disp 401. 205. 15361. 124. 53.7 21.9 #> 2 mpg 23.5 7.38 36.3 6.03 30.0 1.07