Union: Union of two objects of class RepoTimeInt

UnionR Documentation

Union of two objects of class RepoTimeInt

Description

Union takes two objects of class RepoTimeInt and produces a new object of this class with the slot lubriInt resulting from applying the set operation union to their corresponding slots lubriInt.

Usage

Union(x, y)

## S4 method for signature 'RepoTimeInt'
Union(x, y)

Arguments

x

Object of class RepoTimeInt.

y

Object of class RepoTimeInt.

Details

If argument y is missing, union is applied iteratively on every successive component of the list of Interval-class objects. If argument y is not missing, the length of both arguments must be 1.

It is important to remind that union "fills in" the time gap between their time interval arguments, if ever. It includes intervening time intervals between the initial and final input time intervals.

Value

Object of class RepoTimeInt.

Examples

RepoPeriod1 <- newRepoTime('TT12015')
RepoPeriod2 <- newRepoTime('TT22015')
Union(RepoPeriod1, RepoPeriod2)

Months <- newRepoTime(paste0('MM', 10:12, '2014'))
Union(Months)


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