Retrieves the titles and footnotes for a given table from a CSV/XLSX file or a data.frame.
Usage
get_titles_from_file(
id,
file = .find_titles_file(input_path),
input_path = ".",
title_df = .read_titles_file(file)
)
Arguments
- id
character. The identifier for the table of interest.
- file
(
character(1)
)
A path to CSV or xlsx file containing title and footer information for one or more outputs. See Details. Ignored iftitle_df
is specified.- input_path
(
character(1)
)
A path to look for titles.csv/titles.xlsx. Ignored iffile
ortitle_df
is specified.- title_df
(
data.frame
)
A data.frame containing titles and footers for one or more outputs. See Details.
Value
List object containing: title, subtitles, main_footer, prov_footer
for the table of interest. Note: the subtitles and prov_footer are
currently set to NULL. Suitable for use with set_titles()
.