whichperiod {rtv} | R Documentation |
Which Time Period
Description
Time periods (in this context) are taken to be equal length successive time intervals, represented by their starting values. This function takes a crtv object and returns the period that each realisation is in. The periods can be numbered or represented by timestrings. By default periods are represented as the number of periods since the origin.
Usage
whichperiod (x, unit, format=FALSE, natural=FALSE, ...)
Arguments
x |
A crtv object. |
unit |
The unit used for aggregation. |
format |
Format the starting point of the period as a timestring. |
natural |
If format is false and natural is true, use natural numbering 1, 2, ..., n. |
... |
Arguments for timestring. |
[Package
rtv version 0.3.1
Index]