Definition of an S4 class named Variable with its main attributes
UnitNamecharacter vector of lenght 1 with the UnitName of the new variable to
create.
IDDDcharacter vector of length 1 with the IDDD name of the new variable to create.
QualsValuesNamed list with the names of the qualifiers of the new variable and their respective values.
Lengthcharacter vector of length 1 with the maximum length for the values of the
variable.
ClassVarcharacter vector of length 1 with the class of the variable (numeric o
character)
ValueRegExpcharacter vector of length 1 with the expression of right values for the
variable.
Formulawith the character expression to calculate the new variable.
SlotNamecharacter vector of length 1 with the name of the DD slot in which the
new variable will be created.
Literalcharacter vector of length 1 with a comment for the variable.
DDversioncharacter 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.