datetimeMIDAS: converts Date and Time to class POSIXct/POSIXt

Description Usage Arguments Value Examples

Description

function to create a date/time column format based on Date and Time columns of a 'midas' object

Usage

1
2
3
4
datetimeMIDAS(x, date = "Date", time = "Time", 
	date.format = NULL, 
	remove.date = TRUE, remove.time = TRUE)
	

Arguments

x

object of class 'midas'

date, time

character. name of the date and time columns. Default (in downloaded file) to "Date"/"Time", respectively

date.format

format of date and time columns. Default to "%d/%m/%y %H:%M"

remove.date, remove.time

logical to remove original Date/Time columns. Default to TRUE

Value

midas object with datetime column of class "POSIXct/POSIXt" in its traffic.data element

Examples

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

## End(Not run)

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