getVariables: Return the set of Variable Names from the DD slot of an...

Description Usage Arguments Value Examples

Description

getVariables returns all Variable names from the slot DD of the input object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
getVariables(
  object,
  varSort = c("IDDD", "IDQual", "NonIDQual"),
  slots = setdiff(names(object), "VNC")
)

## S4 method for signature 'DD'
getVariables(
  object,
  varSort = c("IDDD", "IDQual", "NonIDQual"),
  slots = setdiff(names(object), "VNC")
)

## S4 method for signature 'StQ'
getVariables(
  object,
  varSort = c("IDDD", "IDQual", "NonIDQual"),
  slots = setdiff(names(getDD(object)), "VNC")
)

## S4 method for signature 'rawStQ'
getVariables(
  object,
  varSort = c("IDDD", "IDQual", "NonIDQual"),
  slots = setdiff(names(getDD(object)), "VNC")
)

Arguments

object

Object whose Variable names are queried.

varSort

Character vector with the Sort of Variables ('IDDD', 'IDQual', 'NonIDQual').

slots

Character vector with the slot names if object class is DD or StQ.

Value

Returns a character vector with the variable names.

Examples

1
2
3
4
data(ExampleDD) 
getVariables(ExampleDD)
getVariables(ExampleDD, varSort = 'IDDD', slots = 'MicroData')
getVariables(ExampleStQ, varSort = 'IDDD', slots = 'Aggregates')

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