These functions call their related chop_xxx
function, and call table()
on the result.
Usage
tab(...)
tab_width(...)
tab_evenly(...)
tab_n(...)
tab_mean_sd(...)
tab_quantiles(...)
tab_deciles(...)
tab_equally(...)
Arguments
- ...
Passed to chop
Examples
tab(1:10, c(2, 5, 8))
#> [1, 2) [2, 5) [5, 8) [8, 10]
#> 1 3 3 3
tab_mean_sd(1:10)
#> [-2 sd, -1 sd) [-1 sd, 0 sd) [0 sd, 1 sd) [1 sd, 2 sd)
#> 2 3 3 2
tab_equally(rpois(50, 4), groups = 4)
#> [0%, 25%) [25%, 50%) [50%, 75%) [75%, 100%]
#> 10 12 8 20