MARCDataAPI_read | R Documentation |
Creates a GET request for a MARCDataAPI URL and returns the result as a tibble
MARCDataAPI_read(url, query = NULL)
url |
A url to a MARCDataAPI. |
query |
A list of key-values for queries to append to the GET request URL. Currently untested. |
See https://rpubs.com/ankc/480665 for how query should work theoretically.
OBDC connection object returned from DBI::dbConnect()
First created in 2020-12-30 for easily accessing data distributed by the MARCData API.
Jacob Peterson
## Not run: df <- MARCDataAPI_read('https://gis2.marc2.org/MARCDataAPI/api/covidcasedeathtest') %>% dplyr::mutate(Date = as.Date(Date), LastUpdated = lubridate::as_datetime(LastUpdated), LastUpdated = lubridate::with_tz(LastUpdated, "America/Chicago")) df ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.