Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

add_footnote

Add footnote


Description

Add footnote to your favorite kable output.

Usage

add_footnote(
  input,
  label = NULL,
  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.

Examples

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

## End(Not run)

kableExtra

Construct Complex Table with 'kable' and Pipe Syntax

v1.3.4
MIT + file LICENSE
Authors
Hao Zhu [aut, cre] (<https://orcid.org/0000-0002-3386-6076>), Thomas Travison [ctb], Timothy Tsai [ctb], Will Beasley [ctb], Yihui Xie [ctb], GuangChuang Yu [ctb], Stéphane Laurent [ctb], Rob Shepherd [ctb], Yoni Sidi [ctb], Brian Salzer [ctb], George Gui [ctb], Yeliang Fan [ctb], Duncan Murdoch [ctb], Bill Evans [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.