Learn R Programming

junco (version 0.1.2)

tt_to_tbldf: Create TableTree as DataFrame via gentlg

Description

Create TableTree as DataFrame via gentlg

Usage

tt_to_tbldf(
  tt,
  fontspec = font_spec("Times", 9L, 1),
  string_map = default_str_map,
  markup_df = dps_markup_df,
  round_type = obj_round_type(tt),
  validate = TRUE
)

Value

tt represented as a tbl data.frame suitable for passing to tidytlg::gentlg via the huxme argument.

Arguments

tt

(TableTree)
TableTree object to convert to a data frame

fontspec

(font_spec)
Font specification object

string_map

(list)
Unicode mapping for special characters

markup_df

(data.frame)
Data frame containing markup information

round_type

(character(1))
the type of rounding to perform. See formatters::format_value() for more details.

validate

logical(1). Whether to validate the table structure using rtables::validate_table_struct(). Defaults to TRUE. If FALSE, a message will be displayed instead of stopping with an error when validation fails.