Learn R Programming

gtfstools (version 2.0.1)

assert_trip_stops_fields: Assert the stop_times and stops fields needed to work with trip stops

Description

Asserts that stop_times has trip_id, stop_id and stop_sequence and that stops has stop_id, stop_lat and stop_lon, with the expected classes. stop_times is checked first, so the functions that share these checks report errors in the same order.

Usage

assert_trip_stops_fields(gtfs)

Value

Invisibly, TRUE.

Arguments

gtfs

A GTFS object.