Learn R Programming

tidytransit (version 0.7.2)

set_servicepattern: Calculate servicepattern for the gtfs_obj

Description

Calculate servicepattern for the gtfs_obj

Usage

set_servicepattern(
  gtfs_obj,
  id_prefix = "s_",
  hash_algo = "md5",
  hash_length = 7
)

Arguments

gtfs_obj

gtfs feed

id_prefix

all ids start with this string

hash_algo

hashing algorithm used by digest

hash_length

length the hash should be cut to with substr(). Use -1 if the full hash should be used

Value

modified gtfs_obj with added servicepattern list and a table linking trips and pattern (trip_servicepatterns)