cutTimeMIDAS: cuts data to selected time period

Description Usage Arguments Value See Also Examples

Description

midas traffic data are 24 hour data for a specified data. Users might need to analyse specific time period within a day. This function allow data to be cut based on time period.

Usage

1
cutTimeMIDAS(x, start.time, end.time, datetime = "datetime")

Arguments

x

object of class 'midas'

start.time, end.time

numeric. start and end time in hours of the selected period. If end time is 18 then 18.00 is the last entry extracted.

datetime

character. column name of the datetime (check datetimeMIDAS). Default to "datetime"

Value

'midas' object cut to the specified time period

See Also

datetimeMIDAS, routeMIDAS

Examples

1
2
3
4
5
6
## Not run: 
#md is a one .csv data set you've downloaded
ex <- datetimeMIDAS(x = md)
sub.ex <- cutTimeMIDAS(x = ex, start.time = 2.5, end.time = 5.3)

## End(Not run)

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