newRepoTime: Constructor of objects of class RepoTimeInt

View source: R/newRepoTime.R

newRepoTimeR Documentation

Constructor of objects of class RepoTimeInt

Description

This constructor takes as argument a character vector with the time intervals in the repo notation and returns the corresponding RepoTimeInt object.

Usage

newRepoTime(Time)

Arguments

Time

Character vector with the time intervals in the repo notation.

Details

The repo notation of time intervals is explained in the details section of RepoTimeInt-class.

Value

Object of class RepoTimeInt.

Examples

x <- newRepoTime(c('MM042015', 'MM052015')) 
x
str(x) 

# It works even with lists instead of vector
newRepoTime(list('AA2015', 'TT12012'))


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