monthlyData_download: monthlyData_download

Description Usage Arguments Details Value See Also

View source: R/monthlyData_download.R

Description

Download plpd, bnf, demog and qof data in csv format and save them in the data directory as generated by the dirsGen() function

Usage

1
monthlyData_download(settings, whichData = "all", sample)

Arguments

settings

setting object created via setConfig() function containing paths, month and year of analysis and file names.

whichData

string indicatin which Data to download. One of "plpd", "bnf", "demog" and "all" default = "all"

sample

logic. if TRUE (default) a sample file is downloaded from github Repository with only 500.000 rows. When FALSE completa data are downloaded from website.

Details

Verify if data have already been downloaded and, if not, download all data for one month analysis. Data are imported from the following sources: - plpd: github when sample=T /website when sample = F - bnf: github/csv - demog: github/csv - qof: github/csv github repository at this link: https://github.com/muschitiello/PrescRiptionsData For time saving purposes the function checks if data are already available in the relative path. If the data have already been downloaded, a message is returned saying that data are already available.

Value

the function does not return anything but downloads data in the dataInput folder and under the relative subfolder

See Also

monthlyData_import


muschitiello/PrescRiptions documentation built on June 12, 2020, 10:38 a.m.