powered by
Add data source attributes to the table
rtf_source( tbl, source = 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 )
A data frame
data source text
text font type
text format
text font size
text color
text background color
justification for text
first indent
left indent
right indent
paragraph space
line space before text
line space after text
boolean value to indicate whether to start a new page
boolean value to indicate whether to use hyphenation
the same data frame tbl with additional attributes for data source of a table
tbl
# NOT RUN { library(dplyr) # required to run examples data(tbl_1) tbl_1 %>% rtf_source("Source: [study999:adam-adeff]") %>% attr("rtf_source") # }
Run the code above in your browser using DataLab