Get Year, Quarter, Month or Isoweek
get_year(x) get_quarter(x) get_month(x) get_isoweek(x) get_isoyear(x)
| x | a date_xx or any R object that can be coerced to |
|---|
an integer vector.
If you use lubridate in addition to dint,
you can also use lubridate::year(), lubridate::month() and
lubridate::quarter() with dint objects.
#> [1] 2016#> [1] 2#> [1] 4#> [1] 2#> [1] 2018#> [1] 2015