table1_gt | R Documentation |
This takes a table1 object and outputs a 'gt' version.
table1_gt(tab, spanner = NULL)
tab |
the table1 object |
spanner |
the label above the grouping variable (if table1 is grouped) or any label you want to include over the statistics column(s) |
Tyson S. Barrett
library(furniture)
library(dplyr)
data('nhanes_2010')
nhanes_2010 %>%
group_by(asthma) %>%
table1(age, marijuana, illicit, rehab, na.rm = FALSE) %>%
table1_gt(spanner = "Asthma")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.