align {timeDate} | R Documentation |
Aligns a 'timeDate' object to regular date/time stamps.
## S4 method for signature 'timeDate' align(x, by = "1d", offset = "0s")
x |
an object of class |
by |
by a character string formed from an integer length and
a period identifyer. Valid values are
"w", "d", "h", "m", "s", for
weeks, days, hours, minutes and seconds. For example
a bi-weekly period is expressed as |
offset |
by a character string formed from an integer length and
a period identifyer in the same way as for the argument
|
returns an object of class timeDate
.
## align - # Align Bi-Weekly with a 3 Days Offset tC = timeCalendar() tC # align(tC, by = "2w", offset = "3d")