powered by
Add a footnote attribute to a table
add_footnote( data, footnote, locations = NULL, placement = c("auto", "right", "left") )
The input data frame with an added footnote attribute.
A data frame, tibble, or tsg object to which a footnote attribute will be added.
tsg
The footnote text to be added.
Locations where the footnote should be applied. Default is NULL (applies to entire table).
Placement of the footnote. One of "auto" (default), "right", or "left".
add_footnote( dplyr::starwars, footnote = "This is a footnote.", locations = c("A1", "B2"), placement = "right" )
Run the code above in your browser using DataLab