View source: R/batch_downloader.R
batch_downloader | R Documentation |
A housekeeping function to do batch downloads.
batch_downloader(url, username, password, api_call_n, api_call_get, batch_size)
url |
Insert the base URL for your instance of Go.Data here. Don't forget the forward slash "/" at end! |
username |
The email address for your Go.Data login. |
password |
The password for your Go.Data login |
api_call_n |
The API url to get the number of records. |
api_call_get |
The API url to GET the records. |
batch_size |
Specifies the number of records to retrieve in each iteration. |
Returns a data frame. Some fields, such as addresses, hospitalization
history, and questionnaire fields may require further unnesting. See
\link[tidyr]{nest}
for assitance with unnesting.
## Not run:
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"
outbreak_id <- "3b5554d7-2c19-41d0-b9af-475ad25a382b"
cases <- get_cases(
url = url,
username = username,
password = password,
outbreak_id = outbreak_id
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.