summary.freqlist {arsenal} | R Documentation |
summary.freqlist
Description
Summarize the freqlist
object.
Usage
## S3 method for class 'freqlist'
summary(object, ..., labelTranslations = NULL, title = NULL)
## S3 method for class 'summary.freqlist'
as.data.frame(x, ..., list.ok = FALSE)
Arguments
object |
an object of class |
... |
For |
labelTranslations |
A named list (or vector) where the name is the label in the
output to be replaced in the pretty rendering by the character string
value for the named element of the list, e.g., |
title |
Title/caption for the table, defaulting to |
x |
An object of class |
list.ok |
If the object has multiple by-variables, is it okay to return a list of data.frames instead of a single data.frame?
If |
Value
An object of class "summary.freqlist"
(invisibly for the print method).
Author(s)
Tina Gunderson, with major revisions by Ethan Heinzen
See Also
freqlist
, table
, xtabs
, kable
,
freq.control
, freqlist.internal
Examples
# load mockstudy data
data(mockstudy)
tab.ex <- table(mockstudy[c("arm", "sex", "mdquality.s")], useNA = "ifany")
noby <- freqlist(tab.ex, na.options = "include")
summary(noby)
withby <- freqlist(tab.ex, strata = c("arm","sex"), na.options = "showexclude")
summary(withby)
summary(withby, dupLabels = TRUE)