Skip to contents

Provides quick computations for

Usage

classify_departure_status(departures_info)

Arguments

departures_info

Results returned from get_departures_by_stop().

Value

An augmented data.frame that includes:

  • late is the bus late

  • delay any delay?

Examples

if (FALSE) { # \dontrun{
# Retrieve departure information from API
departures = get_departures_by_stop("iu")

# Add columns related to late and delay amount.
classified_departures = classify_departure_status(departures)
} # }