newMultitable {crunch} | R Documentation |
Create a new Multitable
Description
Multitables, or "banners" or "crossbreaks", define a set of variables or or query expressions to crosstab with as a unit. They are used in the Crunch web app to display tables side by side, as well as to define one dimension of a tab book.
Usage
newMultitable(formula, data, name, ...)
Arguments
formula |
an object of class 'formula' object with the
cross-classifying variables separated by '+' on the right-hand side.
Following how |
data |
an object of class |
name |
character name to give the new multitable object. If omitted,
a default name will be derived from |
... |
Additional multitable attributes to set. Options include
|
Value
An object of class Multitable
See Also
Examples
## Not run:
m <- newMultitable(~ gender + age4 + marstat, data = ds)
name(m) # [1] "gender + age4 + marstat"
## End(Not run)