link_measures_table: Link Measures Table

Description Usage Arguments Value Examples

View source: R/assignment_tables.R

Description

Link Measures Table

Usage

1
2
3
4
link_measures_table(links, volume, distance = NULL, speed = NULL,
  ffspeed = NULL, capacity = NULL, group_field = NULL,
  volume_breaks = c(0, 5, 10, 15, 20, 40, 60, Inf), type = c("vmt", "vht",
  "vhd", "voc"))

Arguments

links

Model link table as a tidy data frame, with each row representing an analysis link. The function assumes that the data is already tidy: two-way links should already be converted to single values, etc.

volume

Character string identifying the modeled volume in the link table.

distance

Character string identifying the distance in the link table.

speed

Character string identifying the modeled speed in the link table.

ffspeed

Character string identifying the free-flow speed in the link table.

capacity

Character string identifying the capacity in the link table.

group_field

Character string identifying variable to group observations by, for example facility type. If set to same value as volume, will cut into bins.

volume_breaks

Numeric vector passed on to cut() identifying the breakpoints in the volume groups. Number in thousands, i.e.: 10, 20

type

Which type of table to print. Currently supports VMT, VHT, VHD and VOC.

Value

A data_frame with the link summary table.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
link_measures_table(links, "volume", distance = "distance",
  group_field = "area_name", type = "vmt")
link_measures_table(links, "volume", distance = "distance",
  group_field = "facility_group", type = "vmt")
link_measures_table(links, "volume", distance = "distance", speed = "speed",
  group_field = "area_name", type = "vht")
link_measures_table(links, "volume", distance = "distance", speed = "speed",
  group_field = "facility_group", type = "vht")
link_measures_table(links, "volume", distance = "distance", speed = "speed",
  ffspeed = "ffspeed",  group_field = "area_name", type = "vhd")
link_measures_table(links, "volume", distance = "distance", speed = "speed",
  ffspeed = "ffspeed",  group_field = "facility_group", type = "vhd")
link_measures_table(links, "volume", capacity = "capacity",
  group_field = "area_name", type = "voc")
link_measures_table(links, "volume", capacity = "capacity",
  group_field = "facility_group", type = "voc")

pbsag/outviz documentation built on Dec. 7, 2019, 5:50 a.m.