Learn R Programming

timeDate (version 290.84)

align: Making a 'timeDate' object unique

Description

Aligns a 'timeDate' object to regular date/time stamps.

Usage

## S3 method for class 'timeDate':
align(x, by = "1d", offset = "0s")

Arguments

x
an object of class timeDate.
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 "2w"
offset
by a character string formed from an integer length and a period identifyer in the same way as for the argument by.

Value

  • returns an object of class timeDate.

Examples

Run this code
## align -

   # Align Bi-Weekly with a 3 Days Offset
   tC = timeCalendar()
   tC
   # align(tC, by = "2w", offset = "3d")

Run the code above in your browser using DataLab