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

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/F_date_time.R

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

1
2
  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"

Note

Input start and end dates as character (default format "yyyy/mm/dd"), hours as integers (0 to 23).

Date format can be changed according to package chron's standard, e.g. "y/m/d" (default) or "m/d/y"

Author(s)

Emanuele Eccel, Emanuele Cordano emanuele.eccel@iasma.it

See Also

Th_int_series

Examples

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

Example output

Loading required package: date
Loading required package: chron

Interpol.T documentation built on May 2, 2019, 12:21 a.m.