filter_departures {ptvapi}R Documentation

Filter parsed departures content according to user input

Description

The departures API call isn't always reliable. This function will take a tibble of parsed departures content and filter it according to the following inputs, if they are not NULL:

Usage

filter_departures(parsed, departs = NULL, route_id = NULL, max_results = NULL)

Arguments

parsed

A tibble of parsed departures content.

departs

POSIXct in the "Australia/Melbourne" time zone.

route_id

Integer.

max_results

Integer max results.

Value

A filtered tibble.


[Package ptvapi version 2.0.5 Index]