Skip to content

Instantly share code, notes, and snippets.

@ddsjoberg
Created February 15, 2021 02:34
Show Gist options
  • Save ddsjoberg/a407cacc411ceb9bdfc33cfc693b743d to your computer and use it in GitHub Desktop.
Save ddsjoberg/a407cacc411ceb9bdfc33cfc693b743d to your computer and use it in GitHub Desktop.
# ANALYSIS Rmd FILE
```{r}
# create a gtsummary table
tbl <- trial %>% tbl_summary()
# save it to file
saveRDS(tbl, file = "my_tbl_summary1.Rds")
```
# REPORT Rmd FILE
```{r, echo = FALSE}
# load saved gtsummary table
tbl <- readRDS(file = "my_tbl_summary1.Rds")
# print table
tbl
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment