tabla_freq | R Documentation |
Lo mismo que table() pero devuelve un data frame y acepta pesos (Same as table() but returns a dataframe and accepts weights)
tabla_freq(data, x, peso = NULL, na = NULL)
data |
data frame |
x |
variable categórica (categorical variable) |
peso |
en caso hayan pesos (if there are weights) |
na |
en caso se consideren valores perdidos () |
data frame con la cantidad de casos (n) y porcentaje (prop)
tabla_freq(mtcars, "gear")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.