Description Usage Arguments Value Examples
calculates average minimum speeds for each loop detector in a 'midas' object
1 2 | calcMinAvgSpdMIDAS(x, geo.address = "Geographic.Address",
speed = "avg.spd", traffic.bound = NULL)
|
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). |
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.