timeserie: Make a timeserie of dates

Description Usage Arguments Value Examples

View source: R/date_timeserie.R

Description

The fuction dateTimeSerie() builds the timeserie of date

Usage

1
timeserie(timeResolution, fromPeriod, toPeriod, precision = NULL, v = 1)

Arguments

timeResolution

"daily","hourly","minute","second"

fromPeriod

date char "YYYYmmddH..."

toPeriod

date char "YYYYmmdd..."

precision

"daily","hourly","minute","second",...

v

multiplicative coefficient to the timeResolution

Value

The output is a list of a timeserie of POSIXct and the number of steps

Examples

1
2
3
4
5
6
res <- timeserie(timeResolution = "hourly",fromPeriod="2015010100",toPeriod="2015010322")
head(res)
res <- timeserie("daily","1980022802","1980030102","hourly")
head(res)
res <- timeserie("hourly",v=2,"1980022802","1980030102","hourly")
head(res)

nexModeling/timeManip documentation built on May 23, 2019, 4:28 p.m.