reduceMIDAS: removes NA columns

Description Usage Arguments Value Examples

Description

default midas traffic data is flow/speed/occupancy/headway per lane for 7 lanes. some columns are all NA values because some sections do not have 7 lanes. Function removes these columns.

Usage

1
reduceMIDAS(x, col.removed = TRUE)

Arguments

x

object of class 'midas'

col.removed

logical. if true then a comment on the removed columns will be returned. Default to true.

Value

'midas' object with removed NA columns.

Examples

1
2
3
4
5
6
## Not run: 
#md is a one .csv data set you've downloaded
ex <- reduceMIDAS(x = md)
comment(ex) #returns name of columns removed

## End(Not run)

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