f_flextab: A wrapper function for flextable related funtctions

View source: R/f_flextab.R

f_flextabR Documentation

A wrapper function for flextable related funtctions

Description

A wrapper function for flextable related funtctions

Usage

f_flextab(
  df,
  cpt = "",
  tb_lbl = knitr::opts_current$get()$label,
  col_names = NULL,
  f_format_dbl = TRUE,
  f_digi = 2,
  flex_layout = "autofit"
)

Arguments

df

A data.frame of tibble

cpt

The table caption.

tb_lbl

A table label used for bookdown documents. Default is the chunk label. If no chunk label provided add own here.

col_names

New column names. If left empty (NULL) names will be taken from df. If a data.frame is provided, the first column needs to hold the names as in the data and the second column the labels.

f_format_dbl

If TRUE (default) numbers in table will be formatted.

f_digi

Number of digits when f_format_dbl is TRUE.

flex_layout

Used for flextable::set_table_properties. 'autofit' or 'fixed' algorithm. Default to 'autofit'.


fthielen/tatooheen documentation built on Nov. 8, 2023, 4:37 a.m.