Description Usage Arguments Details Value See Also
View source: R/monthlyData_download.R
Download plpd, bnf, demog and qof data in csv format and save them in the data directory as generated by the dirsGen() function
1 | monthlyData_download(settings, whichData = "all", sample)
|
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. |
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.
the function does not return anything but downloads data in the dataInput folder and under the relative subfolder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.