plus-repgendate-Period-method: Addition method for class repgendate

Description Usage Arguments

Description

Having this special class limits what arithmetic can be done thanks to lubridate's "Period" class (e.g. time + hours(4)) because adding the special class to "Period" won't work unless you define an addition method for '+'. This is the addition method for adding Period and repgendate classes, but other arithmetic operations will need to do the same.

Usage

1
2
## S4 method for signature 'repgendate,Period'
e1 + e2

Arguments

e1

object of class "repgendate" (from repgen)

e2

object of class "Period" (from lubridate)


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.