Learn R Programming

Interpol.T (version 2.1.1)

date.time: Generation of dates and hours between start and end terms

Description

Generates dates and hours between start and end terms. The result is a data frame with years, months, days and hours. Called in function Th_int_series

Usage

date.time(day.begin, day.end, h.begin = 0, h.end = 23, date.format = "y/m/d")

Arguments

day.begin
begin date (day) - format specified in date.format
day.end
end date (day) - format specified in date.format
h.begin
begin time (hour - integer)
h.end
end time (hour - integer)
date.format
input date format (formats for function chron)

Value

A 4-column table having the folloging fields (integer): "year", "month", "day", "hour"

See Also

Th_int_series

Examples

Run this code
data(Trentino_hourly_T)
date<-date.time(day.begin="01/01/2004", day.end="31/12/2005", date.format= "d/m/y")

Run the code above in your browser using DataLab