Rounds a date_xx
to the first unit of the current year, or the first
unit of the next year.
# S3 method for date_yq round(x, digits = NULL) # S3 method for date_ym round(x, digits = NULL) # S3 method for date_yw round(x, digits = NULL) # S3 method for date_xx ceiling(x) # S3 method for date_xx floor(x)
x | any |
---|---|
digits | ignored, only there for compatibility with |
a date_xx
of the same subclass as x
#> [1] "2018-Q1"#> [1] "2019-Q1"#> [1] "2018-M01"#> [1] "2019-M01"#> [1] "2018-W01"#> [1] "2019-W01"