ft: flextable wrapper

View source: R/fn_all.R

ftR Documentation

flextable wrapper

Description

Wrapper function for default flextable output.

Usage

ft(
  d,
  fnote = NULL,
  ttl = NULL,
  sig = 3,
  dig = NULL,
  src = 0,
  omit = "",
  tz = TRUE
)

Arguments

d

⁠<dfr>⁠ A data frame.

fnote

⁠<chr>⁠ Footnote.

ttl

⁠<chr>⁠ Title.

sig

⁠<int>⁠ Number of significant digits to compute.

dig

⁠<int>⁠ Number of decimal places to display.

src

⁠<int>⁠ Either 1 or 2 to add source label over 1 or 2 lines.

omit

⁠<chr>⁠ Text to omit from the source label.

tz

⁠<lgl>⁠ FALSE to exclude time stamp.

Value

A flextable object.

Examples

mtcars |> head() |> ft()
mtcars |> head() |> ft(src=1)
mtcars |> head() |> ft("Footnote")
mtcars |> head() |> ft("Footnote",src=1)
mtcars |> head() |> ft(sig=2,dig=1)

edar documentation built on Nov. 15, 2026, 1:07 a.m.