gtsrc: Convert a gtsummary object to flextable and add a source...

View source: R/fn_all.R

gtsrcR Documentation

Convert a gtsummary object to flextable and add a source label

Description

Convert a gtsummary object to flextable and add a source label

Usage

gtsrc(gtsum, omit = "", span = 1)

Arguments

gtsum

A gtsummary object.

omit

⁠<chr>⁠ Text to omit from the label.

span

⁠<num>⁠ Number of lines of source label: either 1 or 2.

Value

A flextable object with source label.

Examples

library(gtsummary)
mtcars |> tbl_summary() |> gtsrc()

edar documentation built on Nov. 15, 2026, 1:07 a.m.