Returns the percentiles

ds_percentiles(data, ...)

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

Examples

ds_percentiles(mtcarz)
#> # A tibble: 6 x 12 #> var min per1 per5 per10 q1 median q3 per95 per90 per99 max #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 disp 71.1 72.5 77.4 80.6 121. 196. 326 449 396. 468. 472 #> 2 drat 2.76 2.76 2.85 3.01 3.08 3.70 3.92 4.31 4.21 4.78 4.93 #> 3 hp 52 55.1 63.6 66 96.5 123 180 254. 244. 313. 335 #> 4 mpg 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9 #> 5 qsec 14.5 14.5 15.0 15.5 16.9 17.7 18.9 20.1 20.0 22.1 22.9 #> 6 wt 1.51 1.54 1.74 1.96 2.58 3.32 3.61 5.29 4.05 5.40 5.42
ds_percentiles(mtcarz, mpg)
#> # A tibble: 1 x 12 #> var min per1 per5 per10 q1 median q3 per95 per90 per99 max #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 mpg 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9
ds_percentiles(mtcarz, mpg, disp)
#> # A tibble: 2 x 12 #> var min per1 per5 per10 q1 median q3 per95 per90 per99 max #> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 disp 71.1 72.5 77.4 80.6 121. 196. 326 449 396. 468. 472 #> 2 mpg 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9