LaTeX has the ability to add notes to the bottom of a table using tablenotes
, so it seems like kable
might be able to easily implement this -- or maybe it already does, but I can't find any mention of this capability.
For example:
You can actually do exactly this using Hao Zhu's awesome kableExtra
package! As follows:
library(knitr)
library(kableExtra)
dt <- mtcars[1:5, 1:4]
# LaTeX Table
kable(dt, format = "latex", booktabs = T) %>%
kable_styling() %>%
add_footnote("Footnote 1", notation="alphabet")
Check out the GitHub repository for the full scope of everything
kableExtra
can do. It greatly extends the functionality of tables within both LaTeX and HTML with loads of extra features.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With