assert_fare_structure: Assert fare structure

View source: R/fare_structure.R

assert_fare_structureR 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.


r5r documentation built on Aug. 8, 2023, 9:07 a.m.