calcMinAvgSpdMIDAS: calculates average minimum speeds

Description Usage Arguments Value Examples

Description

calculates average minimum speeds for each loop detector in a 'midas' object

Usage

1
2
calcMinAvgSpdMIDAS(x, geo.address = "Geographic.Address", 
		speed = "avg.spd", traffic.bound = NULL)

Arguments

x

object of class 'midas'

geo.address, speed

character. geographic address and average speed column names. Default to "Geographic.Address" and "avg.spd", respectively

traffic.bound

(optional) character. if midas object has only anticlockwise traffic data then set to anticlockwise to order the dataframe from start point to end point (because the code numbers for both directions are the same).

Value

list

min.avg.spd

dataframe containing the geographic address and its corresponding observed minimum speed

avg.min.avg.spd

average minimum over all loop detectors

min.min.avg.spd

minimum observed over all loop detectors

Examples

1
2
3
4
5
6
7
## Not run: 
#md is a one .csv data set you've downloaded
ex <- macroMIDAS(x = md, cut.macro = FALSE, spd.method = "weighted",
		replaceZeroSpd = replaceZeroNaMIDAS)
minSpds <- calcMinAvgSpdMIDAS(x = ex)

## End(Not run)

arwasayegh/mdep documentation built on May 20, 2019, 1:27 p.m.