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

Description Usage Arguments Value Examples

Description

[ extracts parts of an object of class rawStQ.

It is indeed the method [ for the class rawStQ. This method returns subsets of the slot Data from an object of class rawStQ specified as an input parameter. The output is an object of the same class rawStQ as the input parameter x.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## S3 method for class 'rawStQ'

  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
]

Arguments

x

Object of class rawStQ.

i, j, ...

Indices corresponding to elements to be extracted. The indices are numeric or character vectors, missing or NULL. Numeric values are coerced to integer with as.integer (thus truncated to zero).

drop

Included by coherence.

Value

Object of class rawStQ with the subsetted input object.

Examples

1
2
3
4
data(ExamplerawStQ)
ExamplerawStQ[IDDDKey == 'Turnover']
ExamplerawStQ[3:4]
ExamplerawStQ[IDDDKey == '00021']

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