Add a source note citation
Add a source note to the footer part of the gt table. A source note is
useful for citing the data included in the table. Several can be added to the
footer, simply use multiple calls of tab_source_note()
and they will be
inserted in the order provided. We can use Markdown formatting for the note,
or, if the table is intended for HTML output, we can include HTML formatting.
tab_source_note(data, source_note)
An object of class gt_tbl
.
2-7
Other Create or Modify Parts:
tab_footnote()
,
tab_header()
,
tab_options()
,
tab_row_group()
,
tab_spanner_delim()
,
tab_spanner()
,
tab_stubhead()
,
tab_style()
# Use `gtcars` to create a gt table; # add a source note to the table # footer that cites the data source tab_1 <- gtcars %>% dplyr::select(mfr, model, msrp) %>% dplyr::slice(1:5) %>% gt() %>% tab_source_note( source_note = "From edmunds.com" )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.