VariableIDDDNames: Convert production unit names of an object of class Variable...

Description Usage Arguments Details Value Examples

Description

VariableIDDDNames returns a character vector with the statistical variable name (IDDD + Qualifiers) corresponding to the production unit variable name of the Variable object specified as input argument.

Usage

1
2
3
4
VariableIDDDNames(Variable, Correspondence)

## S4 method for signature 'Variable,DD'
VariableIDDDNames(Variable, Correspondence)

Arguments

Variable

Object with its main attributes

Correspondence

Object in which Variable will be included.

Details

IDDD and qualifiers compose together the so-called IDDDname of the variable by pasting the IDDD identifier and each consecutive qualifier with an underscore _.

Value

Returns a character vector with the corresponding IDDD variable name.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(ExampleStQ)
DD <- getDD(ExampleStQ)
Var <- new(Class = 'Variable', UnitName = 'LRTEmp',
                               IDDD = 'Employees',
                               QualsValues = list(ID = '', EmplType = ''),
                               Length = '8',
                               ClassVar = 'numeric',
                               ValueRegExp = '[.]+',
                               Formula = as.call(list('log( 1 + (Turnover / (Employees_1. + Employees_2.1.)))')),
                               SlotName = 'MicroData',
                               Literal = '',
                               DDversion = '1')
IDDDName <- VariableIDDDNames(Var, DD)

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