rtf_footnote: Add footnote attributes to the table

Description Usage Arguments Value Examples

View source: R/add_attributes.R

Description

Add footnote attributes to the table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
rtf_footnote(
  tbl,
  footnote = NULL,
  font = 1,
  format = NULL,
  font_size = 9,
  color = NULL,
  background_color = NULL,
  justification = "c",
  indent_first = 0,
  indent_left = 0,
  indent_right = 0,
  space = 1,
  space_before = 0,
  space_after = 0,
  new_page = FALSE,
  hyphenation = TRUE
)

Arguments

tbl

a data frame

footnote

footnote text

font

text font type

format

text format

font_size

text font size

color

text color

background_color

text background color

justification

justification for text

indent_first

first indent

indent_left

left indent

indent_right

right indent

space

paragraph space

space_before

line space before text

space_after

line space after text

new_page

boolean value to indicate whether to start a new page

hyphenation

boolean value to indicate whether to use hyphenation

Value

the same data frame tbl with additional attributes for table footnote

Examples

1
2
3
4
library(dplyr) # required to run examples
data(tbl_1)
tbl_1 %>% rtf_footnote("\\dagger Based on an ANCOVA model.") %>%
    attr("rtf_footnote")

r2rtf documentation built on April 3, 2020, 5:18 p.m.