Skip to contents

Function to join counts, linkstats and network links. Data can be aggregated and filtered by time or mode.

Usage

process_join_counts_and_links(
  counts,
  network,
  link_stats,
  network_modes = c("car"),
  aggr_to = c("day", "hour"),
  earliest = 0,
  latest = 86400
)

Arguments

counts

tibble of counts from read_counts

network

list with network nodes and links

link_stats

List with linkstats tibbles

network_modes

Vector with network modes that will be analyzed, default is "car".

aggr_to

Determines if data should be aggregated into hourly bins or as daily traffic volume, can either be "day" or "hour"

earliest

Integer. Lower limit to filter link stats by time, default = 0.

latest

Integer. Upper limit to filter link stats by time, default = 86400 (midnight).

Value

Long-format tibble with MATSim link id as key ("loc_id"), traffic volumes from MATSim runs and link type