R/extract_abs_tabletitles.R

Defines functions extract_abs_tabletitles

# Only used with read_abs_local, where we can't get the titles from
# the Time Series Directory
#' @importFrom readxl read_excel

extract_abs_tabletitles <- function(filename, path) {
  filename <- paste0(path, "/", filename)

  tabletitle <- readxl::read_excel(filename,
    range = "Index!B6:B6",
    col_names = "tabletitle"
  )

  tabletitle <- as.character(tabletitle)

  tabletitle
}
MattCowgill/readabs documentation built on Feb. 2, 2024, 12:03 a.m.