orderRepoTime: Order of RepoTime Period

View source: R/orderRepoTime.R

orderRepoTimeR Documentation

Order of RepoTime Period

Description

orderRepoTime returns a character vector with the order of the time periods in the input parameter.

Usage

orderRepoTime(RepoTime)

Arguments

RepoTime

Character vector with time periods in repo notation.

Value

An integer vector with the same length as the input parameter RepoTime with the order of the time periods in the input parameter.

See Also

RepoTimeInt-class, getlubriInt

Examples

orderRepoTime(paste0('MM', c('04','06', '01'), '2016'))
orderRepoTime(paste0('QQ', rep(c('1', '2'), 3),c('04','06', '01'), '2016'))
orderRepoTime(paste0('AA', c('2016', '2001', '2014', '2012')))


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