Description Usage Arguments Examples
Given a long form data.table, then summarise each item, group as necessary, and prepare a publication quality Table 1
1 |
dt |
a long data.table with columns for 'id', 'item', and 'val' (and optionally 'group') |
table.dict |
(see notes below) |
grp |
a grouping variable (will produce separate summaries per group) |
1 | # table_one <- function(dt, table.dict, grp=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.