Description Usage Arguments Details Author(s) Examples
This is a S3 method for qtable. In addition to the standard
functionality in qtable, it also replaces variable names with their label
("var: label") if a label exists. This is done for column names, and for the
variable column in a long table (wide = FALSE). When margin = TRUE,
the table will use the "average" from set_translation for the margin.
1 2 3 |
df |
A |
vars |
The variables to aggregate, as a character vector. |
groups |
Variables to group by during aggregation. |
weight |
Name of variable to weight by. Set this to |
margin |
If |
margin_name |
Optional: Give the margin a different name from "Total". |
wide |
Should a long or a wide table be returned? Wide tables spread levels for
|
If you only want the regular qtable functionality, the recommended way
is to just call qtable on the survey data itself (qtable(x$data)
instead of qtable(x)).
Kristian D. Olsen
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.