View source: R/inline_text.tbl_continuous.R
inline_text.tbl_continuous | R Documentation |
Extracts and returns statistics from a tbl_continuous()
object for
inline reporting in an R markdown document. Detailed examples in the
inline_text vignette
## S3 method for class 'tbl_continuous'
inline_text(
x,
variable,
column = NULL,
level = NULL,
pattern = NULL,
pvalue_fun = label_style_pvalue(prepend_p = TRUE),
...
)
x |
( |
variable |
( |
column |
( |
level |
( |
pattern |
( |
pvalue_fun |
( |
... |
These dots are for future extensions and must be empty. |
A string reporting results from a gtsummary table
Daniel D. Sjoberg
t1 <- trial |>
tbl_summary(by = trt, include = grade) |>
add_p()
inline_text(t1, variable = grade, level = "I", column = "Drug A", pattern = "{n}/{N} ({p}%)")
inline_text(t1, variable = grade, column = "p.value")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.