powered by
Display frequency table with counts, percentage, and cumulatives.
rp.freq( f.vars, data, na.rm = TRUE, include.na = FALSE, drop.unused.levels = FALSE, count = TRUE, pct = TRUE, cumul.count = TRUE, cumul.pct = TRUE, total.name = "Total", reorder = FALSE )
a data.frame with a frequency table
data.frame
a character vector with variable names
a data.frame
should missing values be removed?
should missing values be included in frequency table?
should empty level combinations be left out
show frequencies?
show percentage?
show cumulative frequencies?
show cumulative percentage?
a sting containing footer label (defaults to "Total")
reorder the table based on frequencies?
if (FALSE) { rp.freq(c("am", "cyl", "vs"), mtcars) }
Run the code above in your browser using DataLab