Learn R Programming

seroincidence (version 2.0.0)

getAdditionalData: Get Additional Data

Description

Retrieves additional data from internet. This can be any file type, but the purpose of this function is to download data such as longitudinal response parameters from an online repository.

Usage

getAdditionalData(fileName,
  repoURL = "http://ecdc.europa.eu/sites/portal/files/documents",
  savePath = NULL)

Arguments

fileName

Name of the file to download. Required.

repoURL

Web address of the remote repository of files to download from. Required. Default = "http://ecdc.europa.eu/sites/portal/files/documents"

savePath

Folder to save the downloaded and unzipped (if needed) file. File is saved only if this argument is not NULL. Optional. Default = NULL.

Value

Data object

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
getAdditionalData(fileName = "coxiellaIFAParams4.zip")
getAdditionalData(fileName = "yersiniaSSIParams4.zip")
getAdditionalData(fileName = "coxiellaIFAParams4.zip", savePath = getwd())
getAdditionalData(fileName = "yersiniaSSIParams4.zip", savePath = getwd())
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab