getAE_data: getAE_data

Description Usage Arguments Value Examples

Description

getAE_data

Usage

1
2
getAE_data(update_data = TRUE, directory = file.path("data-raw", "sitreps"),
  url_list = NULL, use_filename_date = FALSE)

Arguments

update_data

whether to download files afresh from NHS England website (TRUE) or use existing downloaded files (FALSE)

directory

directory to find existing downloaded files, and to save new downloads

url_list

list of urls (as strings) for the pages to scrape for data files

use_filename_date

if TRUE, take dates from the Excel file's name, if FALSE, take from the date specified inside the sheet

Value

A data frame containing all the monthly A&E data from the NHS England website.

Examples

1
2
AE_data <- getAE_data(directory = file.path('nhsAEscraper','sitreps'))
str(AE_data)

ImogenConnorHelleur/nhsAEscraperScotland documentation built on May 26, 2019, 2:36 a.m.