Add/Subtract Year
x %y+% y x %y-% y # S3 method for date_y %y+%(x, y) # S3 method for date_y %y-%(x, y) # S3 method for date_yq %y+%(x, y) # S3 method for date_yq %y-%(x, y) # S3 method for date_ym %y+%(x, y) # S3 method for date_ym %y-%(x, y) # S3 method for date_yw %y+%(x, y) # S3 method for date_yw %y-%(x, y)
x | a date_xx vector |
---|---|
y | an |
#> [1] "2018-Q1"#> [1] "2016-Q1"#> [1] "2018-M01"#> [1] "2016-M01"