| Hao Zhu | b1bc0aa | 2015-11-12 11:23:42 -0500 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand | 
| Hao Zhu | a3fc0c4 | 2017-02-27 12:04:59 -0500 | [diff] [blame] | 2 | % Please edit documentation in R/add_footnote.R | 
| Hao Zhu | b1bc0aa | 2015-11-12 11:23:42 -0500 | [diff] [blame] | 3 | \name{add_footnote} | 
|  | 4 | \alias{add_footnote} | 
|  | 5 | \title{Add footnote} | 
|  | 6 | \usage{ | 
| Hao Zhu | 1fc48a6 | 2017-03-01 14:07:54 -0500 | [diff] [blame] | 7 | add_footnote(input, label = NULL, notation = "alphabet", | 
| Hao Zhu | 53e240f | 2017-09-04 20:04:29 -0400 | [diff] [blame] | 8 | threeparttable = FALSE, escape = TRUE) | 
| Hao Zhu | b1bc0aa | 2015-11-12 11:23:42 -0500 | [diff] [blame] | 9 | } | 
|  | 10 | \arguments{ | 
|  | 11 | \item{input}{The direct output of your \code{kable} function or your last | 
|  | 12 | \code{kableExtra} function.} | 
|  | 13 |  | 
|  | 14 | \item{label}{A vector of footnotes you want to add. You don't need to add | 
|  | 15 | notations in your notes.} | 
|  | 16 |  | 
|  | 17 | \item{notation}{You can select the format of your footnote notation from | 
| Hao Zhu | b8b0cae | 2018-04-11 16:27:13 -0400 | [diff] [blame] | 18 | \code{number}, \code{alphabet}, \code{symbol} and \code{none}.} | 
| Will Beasley | 70aa3b2 | 2016-01-11 11:42:27 -0600 | [diff] [blame] | 19 |  | 
| Hao Zhu | f7994dd | 2017-02-27 16:58:42 -0500 | [diff] [blame] | 20 | \item{threeparttable}{Boolean value indicating if a | 
| Hao Zhu | 78e6122 | 2017-05-24 20:53:35 -0400 | [diff] [blame] | 21 | \href{https://www.ctan.org/pkg/threeparttable}{threeparttable} scheme should | 
|  | 22 | be used.} | 
| Hao Zhu | 53e240f | 2017-09-04 20:04:29 -0400 | [diff] [blame] | 23 |  | 
|  | 24 | \item{escape}{Logical value controlling if the label needs to be escaped. | 
|  | 25 | Default is TRUE.} | 
| Hao Zhu | b1bc0aa | 2015-11-12 11:23:42 -0500 | [diff] [blame] | 26 | } | 
|  | 27 | \description{ | 
| Hao Zhu | e7c8f70 | 2017-10-10 13:22:59 -0400 | [diff] [blame] | 28 | Add footnote to your favorite kable output. | 
| Hao Zhu | b1bc0aa | 2015-11-12 11:23:42 -0500 | [diff] [blame] | 29 | } | 
| Hao Zhu | 78e6122 | 2017-05-24 20:53:35 -0400 | [diff] [blame] | 30 | \examples{ | 
|  | 31 | x <- knitr::kable(head(mtcars), "html") | 
|  | 32 | add_footnote(x, c("footnote 1", "footnote 2"), notation = "symbol") | 
|  | 33 |  | 
|  | 34 | } |