Skip to contents

Convert bsvarPost tables or report bundles to a flextable::flextable object.

Usage

as_flextable(x, ...)

# S3 method for class 'bsvar_post_tbl'
as_flextable(
  x,
  caption = NULL,
  digits = NULL,
  preset = c("default", "compact"),
  ...
)

# S3 method for class 'data.frame'
as_flextable(
  x,
  caption = NULL,
  digits = NULL,
  preset = c("default", "compact"),
  ...
)

# S3 method for class 'bsvar_report_bundle'
as_flextable(
  x,
  caption = NULL,
  digits = NULL,
  preset = c("default", "compact"),
  ...
)

# Default S3 method
as_flextable(x, ...)

Arguments

x

A bsvar_post_tbl, data frame, or bsvar_report_bundle.

...

Additional arguments passed to flextable::flextable().

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.

Value

A flextable::flextable object.