getPeriods: Return a vector with the names of the time period intervals

Description Usage Arguments Value Examples

Description

getPeriods returns a vector with the names of the time periods from the input object.

Usage

1
2
3
4
5
6
7
getPeriods(object)

## S4 method for signature 'rawStQList'
getPeriods(object)

## S4 method for signature 'StQList'
getPeriods(object)

Arguments

object

Object of class rawStQList or StQList.

Value

Character vector with the names of the time periods according to the notation of package RepoTime.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
mm <- c(paste0('0', 1:9), 10:12)
TimePer <- paste0('MM', mm, '2015')
PeriodList <- RepoTime::newRepoTime(TimePer)

EmptyrawQ <- rawStQ()
EmptyrawQList <- vector('list', 12)
EmptyrawQList <- lapply(EmptyrawQList, function(x) EmptyrawQ)
rawQList <- rawStQList(Data = EmptyrawQList, Periods = PeriodList)
getPeriods(rawQList)

EmptyQ <- StQ()
EmptyQList <- vector('list', 12)
EmptyQList <- lapply(EmptyQList, function(x) EmptyQ)
QList <- StQList(Data = EmptyQList, Periods = PeriodList)
getPeriods(QList)

david-salgado/StQ documentation built on Aug. 12, 2021, 3:23 p.m.