createMIDAS: creates a midas object

Description Usage Arguments Value See Also Examples

Description

creates a midas object of the midas traffic data files.

Usage

1
2
createMIDAS(data, date = "Date", date.format = NULL)
	

Arguments

data

data frame. midas traffic data (as read from .csv after download)

date

character. name of date/datetime column

date.format

format of date column. Default is NULL (change if not in the form "%d/%m/%y")

Value

object of class 'midas'

traffic.data

traffic data for the specified date(s)

collection.date

date and day of the week of the traffic data

See Also

readMIDAS

Examples

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

## End(Not run)

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