flextable (version 0.5.5)

footnote: add footnotes to flextable

Description

add footnotes to a flextable object. A symbol is appened where the footnote is defined and the note is appened in the footer part of the table.

Usage

footnote(x, i = NULL, j = NULL, value, ref_symbols = NULL,
  part = "body")

Arguments

x

a flextable object

i

rows selection

j

column selection

value

a call to function as_paragraph.

ref_symbols

character value, symbols to append that will be used as references to notes.

part

partname of the table (one of 'body', 'header', 'footer')

Examples

Run this code
# NOT RUN {
ft <- flextable(head(iris))
ft <- footnote( ft, i = 1, j = 1:3,
            value = as_paragraph(
              c("This is footnote one",
                "This is footnote two",
                "This is footnote three")
            ),
            ref_symbols = c("a", "b", "c"),
            part = "header")
ft <- valign(ft, valign = "bottom", part = "header")
# }
# NOT RUN {
ft <- autofit(ft)
# }

Run the code above in your browser using DataLab