View source: R/smdi_style_gt.R
smdi_style_gt | R Documentation |
This function takes either an object of class smdi or data.frame or tibble as input and styles it to a publication-ready table based on the gt package. The output is of class gt and can take further gt-based arguments for customization.
smdi_style_gt(
smdi_object = NULL,
include_little = TRUE,
font_size = 13,
tbl_width = 800
)
smdi_object |
object of class "smdi" or data.frame/tibble |
include_little |
can be logical (TRUE/FALSE) for displaying Little's p-value that is part of an "smdi" object or a separate object of class "little" |
font_size |
integer to determine table font size |
tbl_width |
integer to determine table width |
returns a formatted gt table object
gt
library(smdi)
library(dplyr)
smdi_diagnose(
data = smdi_data,
covar = "egfr_cat",
model = "cox",
form_lhs = "Surv(eventtime, status)"
) %>%
smdi_style_gt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.