ts_date_seq: ts_date_seq Generate a time-series with dates starting from...

View source: R/rbms_toolbox.r

ts_date_seqR Documentation

ts_date_seq Generate a time-series with dates starting from January of the starting year to December of the ending years.

Description

ts_date_seq Generate a time-series with dates starting from January of the starting year to December of the ending years.

Usage

ts_date_seq(InitYear = 1970, LastYear = format(Sys.Date(), "%Y"))

Arguments

InitYear

First year of the time-series, four digits format (e.g. 1987).

LastYear

Last year of the time-series, if not provided, the current year is used.

Value

Returns a POSIXct vector with the format 'YYYY-MM-DD HH:MM:SS'

Author(s)

Reto Schmucki - reto.schmucki@mail.mcgill.ca


RetoSchmucki/rbms documentation built on Feb. 14, 2024, 3:17 a.m.