Description Usage Arguments Value Note See Also Examples
one way to deal with zero speeds so it helps in the calculation of traffic densities macroMIDAS. The method is to replace all zero speeds by NA values and so traffic density values would be NA as well.
1 2 | ##replace zeros with NA
replaceZeroNaMIDAS(x, speed.lane = "Speed.Lane")
|
x |
object of class 'midas' with speed column(s) |
speed.lane |
character. part of names of the speed columns which distinguish them from other columns. Default to "Speed.Lane" |
midas object with updated speed data of the traffic.data element (zeros replaced by NA's)
not sure if this is the right way to do it for some entries, zero speed does not make sense, more like a measurement fault
macroMIDAS
1 2 3 4 5 6 | ## Not run:
#md is a one .csv data set you've downloaded
ex <- replaceZeroNaMIDAS(x = md)
#comment(ex) #provides the number of rows where zero speeds are found and replaced by NA
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.