Asserts whether the specified fare structure object complies with the
structure set in setup_fare_structure()
.
assert_fare_structure(fare_structure)
Throws and error upon failure and invisibly returns TRUE
on
success.
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")
.