top_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
top_flows(flows_od, p = 0.9, by_period = TRUE, ignore_sink_source = TRUE)

Arguments

flows_od

Flows$od tibble.

p

Desired proportion of total traffic.

by_period

Whether to aggregate total flow by period.

ignore_sink_source

Whether to include ods containing source and sink.

Value

flows_od [tibble][tibble::tibble-package]


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