count_and_share: Count and Share

View source: R/count_and_share.R

count_and_shareR Documentation

Count and Share

Description

Tras realizar un group_by es habitual calcular el porcentaje. Con esta función se obtiene por defecto.

Usage

count_and_share(df, ...)

Arguments

df

Un tibble o dataframe.

...

Nombre de las variables a utilizar.

Value

Un nuevo tibble con el conteo y el porcentaje

Examples


mtcars %>%
 count_and_share(cyl, vs)

octmedina/ksnet documentation built on April 18, 2023, 3:34 p.m.