Last data update: 2014.03.03

R: Generation of dates and hours between start and end terms
date.timeR Documentation

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"

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

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Interpol.T)
Loading required package: date
Loading required package: chron
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Interpol.T/date.time.Rd_%03d_medium.png", width=480, height=480)
> ### Name: date.time
> ### Title: Generation of dates and hours between start and end terms
> ### Aliases: date.time
> 
> ### ** Examples
> 
> data(Trentino_hourly_T)
> date<-date.time(day.begin="01/01/2004", day.end="31/12/2005", date.format= "d/m/y")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>