load_AE_files: load_AE_files

View source: R/scrape_AE_data_Eng.R

load_AE_filesR Documentation

load_AE_files

Description

load_AE_files

Usage

load_AE_files(directory = file.path("data-raw", "sitreps"),
  use_filename_date = TRUE, country = "England")

Arguments

directory

path of the directory to load files from

use_filename_date

if TRUE, take dates from the Excel file's name, if FALSE, take from the date specified inside the sheet (English data only)

country

the country ("England" or "Scotland") whose AE data is to be loaded

Value

a list of data frames containing data loaded from files in directory whose name is of the form '\*AE-by-provider\*.xls' for England data, or '\*-Data\*.csv' for Scotland

Examples

## Not run: 
dataList <- load_AE_files(directory = file.path('nhsAEscraper','sitreps'))

## End(Not run)

HorridTom/nhsAEscraper documentation built on April 11, 2024, 1:12 a.m.