plus-RepoTimeInt-Period-method: Sum of a Period class object to a RepoTimeInt class object

+,RepoTimeInt,Period-methodR Documentation

Sum of a Period class object to a RepoTimeInt class object

Description

+ sums an object of class Period of lubridate-package to an object of class RepoTimeInt.

Usage

## S4 method for signature 'RepoTimeInt,Period'
e1 + e2

Arguments

e1

Object of class RepoTimeInt.

e2

Object of class Period.

Details

This method overloads the operator + and builds an object of class RepoTimeInt.

Value

Object of class RepoTimeInt resulting from summing the time period e2 to the initial time interval e1.

Examples

RepoPeriod <- newRepoTime('MM022015')
RepoPeriod + months(1)
RepoPeriod + lubridate::years(1)
RepoPeriod + lubridate::weeks(2)


david-salgado/RepoTime documentation built on Feb. 2, 2024, 2:07 p.m.