assert_fare_structure {r5r}R Documentation

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)

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

Value

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


[Package r5r version 2.2.0 Index]