add_footnote: Add footnote

View source: R/add_footnote.R

add_footnoteR Documentation

Add footnote

Description

Add footnote to your favorite kable output.

Usage

add_footnote(
  input,
  label = NULL,
  notation = getOption("kable_footnote_notation", "alphabet"),
  threeparttable = FALSE,
  escape = TRUE
)

Arguments

input

The direct output of your kable function or your last kableExtra function.

label

A vector of footnotes you want to add. You don't need to add notations in your notes.

notation

You can select the format of your footnote notation from number, alphabet, symbol and none.

threeparttable

Boolean value indicating if a threeparttable scheme should be used.

escape

Logical value controlling if the label needs to be escaped. Default is TRUE.

See Also

footnote(), footnote_marker_number()

Examples

## Not run: 
x <- knitr::kable(head(mtcars), "html")
add_footnote(x, c("footnote 1", "footnote 2"), notation = "symbol")

## End(Not run)


kableExtra documentation built on June 22, 2024, 10:59 a.m.