cut_flows: Get the subset of flows whose OD pairs account for the top p...

Description Usage Arguments Value

Description

Get the subset of flows whose OD pairs account for the top p proportion of total or period-wise observed traffic flow. Returns all od pairs up to the first od pair that exceeds p.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cut_flows(
  flows_od,
  flows_l,
  time_resolution,
  locations = NULL,
  pairs = NULL,
  filter_dayperiod = "morning",
  fill_gaps = TRUE,
  filter_weekdays = c(1:5),
  min_t = NULL,
  max_t = NULL
)

Arguments

flows_od

flows at ods [tibble][tibble::tibble-package]

flows_l

flows at locations [tibble][tibble::tibble-package]

time_resolution

temporal resolution of flow tibbles

locations

filter observations occurring at these locations (vector)

pairs

filter observations involving these od pairs [tibble][tibble::tibble-package]

filter_dayperiod

filter observations occurring at this period of the day

fill_gaps

whether to make missing time steps explicit

filter_weekdays

filter observations occurring on these weekdays

min_t

first expected time step, defaults to minimum time in data

max_t

last expected time step, defaults to maximum time in data

Value

list with updated tibbles of flows_od and flows_l


ppintosilva/anprflows documentation built on May 20, 2021, 3:25 p.m.