StQList: S4 class to implement a named list of objects of class StQ

Description Usage Arguments Examples

View source: R/StQList.R

Description

Definition of an S4 class of name StQList with a list of objects of class StQ. Instead of an atomic vector as a name, we associate with it an object of class RepoTimeInt containing the names of the time periods corresponding to each StQ object.

The structure of this S4 class StQList comprises 2 attributes:

Usage

1
StQList(Data = list(), Periods = new(Class = "RepoTimeInt"))

Arguments

Data

List of objects of class StQ;

Periods

An object of class RepoTimeInt;

Examples

1
2
3
4
5
6
7
8
9
mm <- c(paste0('0', 1:9), 10:12)
TimePer <- paste0('MM', mm, '2015')
PeriodList <- RepoTime::newRepoTime(TimePer)
EmptyQ <- StQ()
EmptyQList <- vector('list', 12)
EmptyQList <- lapply(EmptyQList, function(x) EmptyQ)
QList <- StQList(Data = EmptyQList, Periods = PeriodList)
QList
str(QList)

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