Learn R Programming

gtfstools (version 2.0.1)

merge_service_intervals: Merge the overlapping calendar intervals of each service and weekday

Description

Merge the overlapping calendar intervals of each service and weekday

Usage

merge_service_intervals(service_intervals)

Value

A data.table with the same columns, in which the intervals of a service on a weekday don't overlap. service_intervals is reordered by reference.

Arguments

service_intervals

A data.table with the columns sid, weekday, first_day and last_day (integer days since 1970-01-01).