pull_bitre_data: Pull BITRE data

Description Usage Arguments Details Value Author(s) Examples

View source: R/pull-bitre-data.R

Description

Uses the CKAN data.gov.au API to pull records - tuned for the BITRE API.

Usage

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"
)

Arguments

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

Details

Retrieves a dataframe, with some limited filtering capabilities

Value

This function will return a data frame of the BITRE on time performance data.

Author(s)

Matt Simmons mattsimmons@email.com

Examples

1
2
3
4
## Not run: 
data <- pull_bitre_data <- function(base_url = url, resource_id = id)

## End(Not run)

mattsq/examplePackage documentation built on May 23, 2020, 12:23 p.m.