yearmonth()
is a constructor for <grates_yearmonth>
objects.
Arguments
- year
[integer]
Vector representing the year associated with month
.
double
vectors will be converted via as.integer(floor(x))
.
- month
[integer]
Vector representing the month associated with `year.
double
vectors will be converted via as.integer(floor(x))
.
Value
A <grates_yearmonth>
object.
Details
<grates_yearmonth>
objects are stored as the number of months (starting at
0) since the Unix Epoch (1970-01-01).
Examples
yearmonth(year = 2000L, month = 3L)
#> <grates_yearmonth[1]>
#> [1] "2000-Mar"