Description Usage Arguments Value Examples
[
extracts parts of an object of class StQ.
It is indeed the method [
for the class StQ. This method returns subsets of
the slot Data
from an object of class StQ specified as an input parameter.
The output is an object of the same class StQ as the input parameter x
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## S3 method for class 'StQ'
x[
i,
j,
by,
keyby,
with = TRUE,
nomatch = getOption("datatable.nomatch"),
mult = "all",
roll = FALSE,
rollends = if (roll == "nearest") c(TRUE, TRUE) else if (roll >= 0) c(FALSE, TRUE)
else c(TRUE, FALSE),
which = FALSE,
.SDcols,
verbose = getOption("datatable.verbose"),
allow.cartesian = getOption("datatable.allow.cartesian"),
drop = NULL,
on = NULL
]
|
x |
Object of class StQ. |
i, j, ... |
Indices corresponding to elements to be extracted. The indices are numeric or
character vectors, |
drop |
Included by coherence. |
Object of class StQ with the subsetted input object.
1 2 3 4 | data(ExampleStQ)
ExampleStQ[IDDD == 'Turnover']
ExampleStQ[3:4]
ExampleStQ[ID == '00021']
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.