Description Usage Arguments Value Author(s) References Examples
Create descriptives for ategorical variables Current version works in the html setting. We are working on extend it to the word document
1 2 |
x |
Vector of a categorical variable |
descriptive table
Seonjoo Lee, sl3670@cumc.columbia.edu
TBA
1 2 3 4 5 6 | data(mtcars)
mtcars = mtcars %>% mutate(cyl=factor(cyl),vs=factor(vs), am=factor(am))
varlist=c('mpg','disp','hp','drat','wt','gear','carb','vs')
desc_table(varlist, data=mtcars,groupvar=NULL)
desc_table(varlist, data=mtcars,groupvar="cyl")
desc_table(varlist, data=mtcars,groupvar="cyl",total=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.