new_yearquarter {grates} | R Documentation |
Minimal constructor for a yearquarter object
Description
new_yearquarter()
is a constructor for <grates_yearquarter>
objects aimed
at developers.
Usage
new_yearquarter(x = integer())
is_yearquarter(xx)
Arguments
x |
Vector representing the number of quarters.
|
xx |
R object. |
Details
<yearquarter>
objects are stored as the number of quarters (starting at 0)
since the Unix Epoch (1970-01-01).
Value
A <grates_yearquarter>
object.
Examples
new_yearquarter(1:10)
[Package grates version 1.2.1 Index]