rawStQList: S4 class to implement a named list of objects of class rawStQ

Description Usage Slots Examples

View source: R/rawStQList.R

Description

Definition of an S4 class of name rawStQList with a list of objects of class rawStQ. 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 rawStQ object.

The structure of this S4 class rawStQList comprises 2 attributes:

Usage

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

Slots

Data

List of objects of class rawStQ;

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)
EmptyrawQ <- rawStQ()
EmptyrawQList <- vector('list', 12)
EmptyrawQList <- lapply(EmptyrawQList, function(x) EmptyrawQ)
rawQList <- rawStQList(Data = EmptyrawQList, Periods = PeriodList)
rawQList
str(rawQList)

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