align {timeDate}R Documentation

Making a 'timeDate' object unique

Description

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

Usage

## S4 method for signature '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

## align -

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

[Package timeDate version 2131.00 Index]