rbindMIDAS: binds and orders multiple objects of class 'midas'

Description Usage Arguments Value Note Examples

Description

function to combine midas objects and order values based on geographic address or address and date

Usage

1
2
3
4
rbindMIDAS(x, order = TRUE, 
	geo.address = "Geographic.Address", date.time = "datetime", 
	date = NULL, time = NULL)
	

Arguments

x

list of 'midas' objects

order

logical whether to order combined traffic data or not. Default to TRUE

geo.address, date.time

character. name of geographic address and datetime columns. Default to "Geographic.Address" and "datetime", respectively not necessary (NULL) if order is set to FALSE

date, time

if datetime is not created either create using datetimeMIDAS or give the names of the date and time columns e.g. "Date"/"Time". Default to NULL. assumes datetime column is created.

Value

single midas object with modified collection.date to account for all the midas object combined

Note

midas object needs to have same columns (nr of columns and names)

Examples

1
2
3
4
5
6
## Not run: 
#md is a one .csv data set you've downloaded
ex <- datetimeMIDAS(x = md)
ex2 <- rbindMIDAS(x = list(ex, ex))

## End(Not run)

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