View source: R/count_and_share.R
count_and_share | R Documentation |
Tras realizar un group_by es habitual calcular el porcentaje. Con esta función se obtiene por defecto.
count_and_share(df, ...)
df |
Un tibble o dataframe. |
... |
Nombre de las variables a utilizar. |
Un nuevo tibble con el conteo y el porcentaje
mtcars %>%
count_and_share(cyl, vs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.