Description Usage Arguments Value Examples
[
extracts parts of an object of class StQList.
It is indeed the method [
for the class StQList. This method returns a
subset of an input object of class StQList. Thus it returns an object of class
StQList.
1 2 3 4 | subPeriods(x, i)
## S4 method for signature 'StQList'
subPeriods(x, i)
|
x |
object of class StQList. |
i, j, ... |
Indices corresponding to the elements to be extracted. These indices are numeric
vector or character vector, objects of class RepoTimeInt or missing or
NULL. Numeric values are coerced internally to |
drop |
Included by coherence. |
Object of class StQList with the corresponding data subset.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
mm <- c(paste0('0', 1:9), 10:12)
TimePer <- paste0('MM', mm, '2015')
QList <- vector('list', 12)
QList <- lapply(QList, function(x) ExampleStQ)
names(QList) <- TimePer
StQList <- StQList(Data = QList, Periods = RepoTime::newRepoTime(TimePer))
StQList[c('MM092015', 'MM102015')]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.