sub-sub-.rawStQList: Extract parts of an object of class rawStQList

Description Usage Arguments Value Examples

Description

[[ extracts parts of an object of class rawStQList.

It is indeed the method [[ for the class rawStQList. This method returns objects of class StQ from the slot Data of the input object x.

Usage

1
2
## S3 method for class 'rawStQList'
x[[i, j, ..., exact = TRUE]]

Arguments

x

object of class rawStQList.

i, j, ...

Indices corresponding to the elements to be extracted. These indices are numeric vector or character vector or missing or NULL. Numeric values are coerced internally to integer through as.integer (and thus truncated to zero). Character vector correspond to names of the respective time period of each component object of class StQ.

exact

Included by coherence.

Value

Object of class StQ.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
mm <- c(paste0('0', 1:9), 10:12)
TimePer <- paste0('MM', mm, '2015')
PeriodList <- RepoTime::newRepoTime(TimePer)
EmptyQ <- rawStQ()
EmptyQList <- vector('list', 12)
EmptyQList <- lapply(EmptyQList, function(x) EmptyQ)
QList <- new(Class = 'rawStQList', Data = EmptyQList, Periods = PeriodList)
QList[['MM092015']]
QList[[2]]

## End(Not run)

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