View source: R/createFreqTables.R
createFreqTables | R Documentation |
This function creates a df with all frequency tables, weighted if necessary
createFreqTables(
df,
rows,
cols = NULL,
weight = NULL,
wide = FALSE,
labels = "Total",
percent = FALSE,
addIdentifier = FALSE
)
df |
data cleaned and ready for analysis |
rows |
vector of variables that will be on the rows of the table |
cols |
vector of variables that will be on the cols of the table, to create total tables set to NULL (default) |
weight |
variable that identifies weights, default NULL |
wide |
logical, if TRUE expand for each value in cols |
labels |
vector of labels for cols |
percent |
logical, if TRUE table will have percentage instead of count |
addIdentifier |
logical, if TRUE column Pregunta will include identifiers. |
Df of frequency tables
Gabriel N. Camargo-Toledo gcamargo@sensata.io
TBD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.