Convert bsvarPost tables or report bundles to a gt::gt_tbl object.
Usage
as_gt(x, ...)
# S3 method for class 'bsvar_post_tbl'
as_gt(x, caption = NULL, digits = NULL, preset = c("default", "compact"), ...)
# S3 method for class 'data.frame'
as_gt(x, caption = NULL, digits = NULL, preset = c("default", "compact"), ...)
# S3 method for class 'bsvar_report_bundle'
as_gt(x, caption = NULL, digits = NULL, preset = c("default", "compact"), ...)
# Default S3 method
as_gt(x, ...)Arguments
- x
A
bsvar_post_tbl, data frame, orbsvar_report_bundle.- ...
Additional arguments passed to
gt::gt().- caption
Optional table caption.
- digits
Optional number of digits used to round numeric columns before rendering.
- preset
Reporting preset. Use
"compact"for a narrower, publication-oriented column selection.