Learn R Programming

r5r (version 1.1.0)

assert_fare_structure: Assert fare structure

Description

Asserts whether the specified fare structure object complies with the structure set in setup_fare_structure().

Usage

assert_fare_structure(fare_structure)

Value

Throws and error upon failure and invisibly returns TRUE on success.

Arguments

fare_structure

A fare structure object, following the convention set in setup_fare_structure(). This object describes how transit fares should be calculated. Please see the fare structure vignette to understand how this object is structured: vignette("fare_structure", package = "r5r").