report_format | R Documentation |
Elegant format for report tables
report_format(report_data, caption = NULL, fontsize = NULL)
report_data |
report_data Report table to be formatted. |
Table formatted with flextable.
df <- data.frame(x=rbinom(90,3,0.6),y=rbinom(90,4,0.8), z=rbinom(90,5,0.5),
g=sample(c("Yes","No"),90,replace=TRUE))
df %>%
report_nPct(c(x,y,z)) %>% report_format() # Overall summary of variables x, y and z
df %>%
report_nPct(c(x,y,z), groupVar=g, digits=3) %>% report_format(caption="My report table")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.