Support for vctrs arithmetic
Source:R/gregorian-year-day.R
, R/gregorian-year-month-day.R
, R/gregorian-year-month-weekday.R
, and 6 more
clock-arith.Rd
Support for vctrs arithmetic
Usage
# S3 method for class 'clock_year_day'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_year_month_day'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_year_month_weekday'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_iso_year_week_day'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_naive_time'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_year_quarter_day'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_sys_time'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_year_week_day'
vec_arith(op, x, y, ...)
# S3 method for class 'clock_weekday'
vec_arith(op, x, y, ...)
Examples
vctrs::vec_arith("+", year_month_day(2019), 1)
#> <year_month_day<year>[1]>
#> [1] "2020"