RepoTimeInt-Period-method: Subtract of a Period class object to a RepoTimeInt class...

-,RepoTimeInt,Period-methodR Documentation

Subtract of a Period class object to a RepoTimeInt class object

Description

- subtracts 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 subtracting 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.