| rp.freq {rapportools} | R Documentation |
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)
f.vars |
a character vector with variable names |
data |
a |
na.rm |
should missing values be removed? |
include.na |
should missing values be included in frequency table? |
drop.unused.levels |
should empty level combinations be left out |
count |
show frequencies? |
pct |
show percentage? |
cumul.count |
show cumulative frequencies? |
cumul.pct |
show cumulative percentage? |
total.name |
a sting containing footer label (defaults to "Total") |
reorder |
reorder the table based on frequencies? |
a data.frame with a frequency table
## Not run:
rp.freq(c("am", "cyl", "vs"), mtcars)
## End(Not run)