diff --git a/gtsummary.Rmd b/gtsummary.Rmd index af999ff6..113da483 100644 --- a/gtsummary.Rmd +++ b/gtsummary.Rmd @@ -199,6 +199,23 @@ include et label générique + +## Exporter un tableau + +![Formats d'export d'un tableau gtsummary](images/gtsummary_output_formats.png) + +```{r} +tbl %>% + as_gt() %>% + gt::gtsave(filename = ".") # use extensions .html .tex .ltx .rtf + +tbl %>% + as_flex_table() %>% + flextable::save_as_docx() +``` + + + ## Plus d'options avec bstfun ### tbl_likert() diff --git a/images/gtsummary_output_formats.png b/images/gtsummary_output_formats.png new file mode 100644 index 00000000..44ae4f29 Binary files /dev/null and b/images/gtsummary_output_formats.png differ