Description Usage Arguments Details Value Author(s) Examples
View source: R/pull-bitre-data.R
Uses the CKAN data.gov.au API to pull records - tuned for the BITRE API.
1 2 3 4 5 6 7 8 9 | pull_bitre_data(
base_url,
resource_id,
limit = 5000,
offset = 1,
sort = "Year desc, Month_Num desc, Airline desc, Departing_Port asc, Arriving_Port asc",
records_format = "objects"
)
|
base_url |
The base data.gov.au API URL |
resource_id |
The specific resource ID code from the data.gov.au website |
limit |
The number of rows you want to pull |
offset |
the rownumber start |
sort |
a text string, in SQL style, indicating how you'd like to sort the records |
records_format |
leave this as objects for the moment |
Retrieves a dataframe, with some limited filtering capabilities
This function will return a data frame of the BITRE on time performance data.
Matt Simmons mattsimmons@email.com
1 2 3 4 | ## Not run:
data <- pull_bitre_data <- function(base_url = url, resource_id = id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.