table_one: Prepare Table 1 for biomedical research papers

Description Usage Arguments Examples

Description

Given a long form data.table, then summarise each item, group as necessary, and prepare a publication quality Table 1

Usage

1
table_one(dt, table.dict, grp = NULL)

Arguments

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)

Examples

1
# table_one <- function(dt, table.dict, grp=NULL) 

datascibc/dsbc documentation built on May 14, 2019, 7:45 p.m.