Definition of an S4 class named Variable
with its main attributes
UnitName
character
vector of lenght 1 with the UnitName of the new variable to
create.
IDDD
character
vector of length 1 with the IDDD name of the new variable to create.
QualsValues
Named list with the names of the qualifiers of the new variable and their respective values.
Length
character
vector of length 1 with the maximum length for the values of the
variable.
ClassVar
character
vector of length 1 with the class of the variable (numeric o
character)
ValueRegExp
character
vector of length 1 with the expression of right values for the
variable.
Formula
with the character expression to calculate the new variable.
SlotName
character
vector of length 1 with the name of the DD slot in which the
new variable will be created.
Literal
character
vector of length 1 with a comment for the variable.
DDversion
character
vector of length 1 with the version of the DD.
1 2 3 4 5 6 7 8 9 10 | 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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.