Count and Share
count_and_share.Rd
Tras realizar un group_by es habitual calcular el porcentaje. Con esta función se obtiene por defecto.
Ejemplos
mtcars %>%
count_and_share(cyl, vs)
#> cyl vs n p
#> 1 4 0 1 0.03125
#> 2 4 1 10 0.31250
#> 3 6 0 3 0.09375
#> 4 6 1 4 0.12500
#> 5 8 0 14 0.43750