first_departure_per_trip: Get the earliest departure of each trip

View source: R/utils.R

first_departure_per_tripR Documentation

Get the earliest departure of each trip

Description

Get the earliest departure of each trip

Usage

first_departure_per_trip(trip_id, departure_secs)

Arguments

trip_id, departure_secs

The trip_id and the departure time (in seconds) of each stop_times row.

Value

A data.table with the columns trip_id and departure_secs (the earliest non-missing departure of the trip), with one row per trip with at least one departure, in order of first appearance of the timed rows.


gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.