freq_table | R Documentation |
Tabla de frecuencias relativas, por fila columnas o global.
freq_table( var.cat, y, data, margin = NULL, nround = 2, restab = TRUE, title = "titles for the table", xtab.type = "html" )
var.cat |
vector con el nombre de las variables categoricas a resumir |
y |
nombre de la variable factor principal. |
data |
data frame que contiene las variables a analizar |
margin |
index, or vector of indices to generate margin for |
nround |
integer indicating the number of decimal places (round). |
restab |
TRUE o FALSE, para obtener tabla en formato .tex or .html |
title |
titles for the table |
xtab.type |
A character string. Possible values are latex, html, markdown, pandoc, and rst; this will be automatically determined if the function is called within knitr; it can also be set in the global option knitr.table.format. If format is a function, it must return a character string. |
Miriam Mota mmota.foix@gmail.com
# freq_table(var.cat = c('cyl','vs','gear', 'carb'), y = 'am', data = mtc_bis, restab = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.