print_flextable: Print the labetests data

Description Usage Arguments Value

View source: R/print_flextable.R

Description

This function receives data for labtests and formats it appropriately. It prints the table as a kable if FLAG.flextable if FALSE or as a flextable object if FLAG.flextable is TRUE.

Usage

1
2
3
4
5
6
print_flextable(
  tb,
  column_recode = NA,
  bg_colour = "lightgrey",
  column_padding = NA
)

Arguments

tb

the data as a tibble

column_recode

optional named list for renaming columns

bg_colour

optional background colour definition for header

column_padding

(optional) list of paddings to use for each row; add a new item to the list for each column.

Value

Table object to print


LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.