laneNrMIDAS: extracts number of lanes

Description Usage Arguments Value See Also Examples

Description

extracts number of lanes of the road at which loop detectors located

Usage

1
2
3
laneNrMIDAS(x, geo.address = "Geographic.Address", lane.nr = "Number.of.Lanes", 
	direction.info = "direction", location.info = "location", 
	traffic.bound = NULL)

Arguments

x

object of class 'midas'

geo.address, lane.nr, direction.info, location.info

character. column names of the geographic address, number of lanes, direction, and location. Default to "Geographic.Address", "Number.of.Lanes", "direction", and "location", respectively check addDescMIDAS

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

dataframe of four columns (geographic address, direction of the geographic address, location of the geographic address, and number of lanes for the corresponding geographic address)

See Also

addDescMIDAS, routeMIDAS

Examples

1
2
3
4
5
6
## Not run: 
#md is a one .csv data set you've downloaded
ex <- addDescMIDAS(x = md)
l <- laneNrMIDAS(x = ex)

## End(Not run)

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