getValues: Return the values of a variable of specified statistical...

Description Usage Arguments Value Examples

Description

getValues returns the values of the variable specified as input parameter of those statistical units also specified as an input parameter of the input object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S4 method for signature 'StQList'
getUnits(object, DDslot = "MicroData")

getValues(object, VarName, Units = getUnits(object))

## S4 method for signature 'StQ,character'
getValues(object, VarName, Units = getUnits(object))

## S4 method for signature 'StQList,character'
getValues(object, VarName, Units = getUnits(object))

Arguments

object

Object of class StQ or StQList.

VarName

Character vector with the name of the variable.

Units

data.table with the qualifier values identifying each statistical unit in the input object.

Value

Returns a data.table with the unit qualifier and the corresponding value for each statistical unit.

Examples

1
2
3
library(data.table)
getValues(ExampleStQ, 'Employees_1.')
getValues(ExampleStQ, 'Turnover', Units = data.table(ID = c('00001', '00002')))

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