Description Usage Arguments Value Author(s) Examples
Generating "quick" tables for one or more variables (does not support mixed types).
By default qtable
generates proportions for factor
and character
vectors,
means for numeric
and integer
, and min/max for Date
(including POSIX)
vectors. It always includes the number of observations for each variable.
When producing wide tables, group counts are separate with /
.
1 2 |
df |
A |
vars |
The variables to aggregate, as a character vector. |
groups |
Variables to group by during aggregation. |
weight |
Name of a variable to weight by. Only used when |
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
|
A data.frame
or data.table
with the additional class qtable
.
Kristian D. Olsen
1 | # TODO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.