Get and Set Months
dtt_month(x, ...) dtt_months(x, ...) dtt_month(x) <- value dtt_months(x) <- value dtt_set_month(x, value)
x | A Date or POSIXct vector. |
---|---|
... | Unused. |
value | A numeric vector of the month value(s). |
An integer vector.
dtt_month(Sys.time())#> [1] 3