get_servicepattern: Identify Recurring Daily Service Patterns

View source: R/get_servicepattern.R

get_servicepatternR Documentation

Identify Recurring Daily Service Patterns

Description

Identifies each distinct set of 'service_id' values active on a calendar date. The same service may belong to more than one pattern when it operates alongside different services on different dates.

Usage

get_servicepattern(gtfs)

Arguments

gtfs

A GTFS object.

Value

A tibble with one row per service-to-pattern association and columns 'service_id', 'service_pattern', and 'pattern_frequency'. The frequency is the number of dates having that exact set of active services. Pattern numbers are ordered from most to least frequent. Calendar dates without active services are represented by 'service_pattern = "No service"' and 'service_id = NA'.

See Also

[GTFSwizard::filter_servicepattern()]

Examples

get_servicepattern(for_rail_gtfs)


GTFSwizard documentation built on Aug. 21, 2026, 5:16 p.m.