tab_footnote: Alternative footnote for gt tables exported as kable

tab_footnoteR Documentation

Alternative footnote for gt tables exported as kable

Description

This function can be called on a gt table and will the function just as tab_footnote. If called on a kable table, it will print the kable table, ignoring the footnote.

Usage

tab_footnote(
  data,
  footnote,
  locations = NULL,
  placement = c("auto", "right", "left")
)

Arguments

data

gt table or kable table

footnote

Footnote. Will be ignored for a kable table.

locations

Location, as per gt, e.g., cells_body. Will be ignored for a kable table.

placement

Where to affix footnote marks. Will be ignored for a kable table.

Value

gt table or kable table, whichever format data is in.


stopsack/khsmisc documentation built on Sept. 22, 2023, 12:26 p.m.