Description Usage Arguments Value Examples
setVariable
.
1 2 3 4 5 6 7 | setVariable(object, Var, lag = NULL, by = NULL)
## S4 method for signature 'StQ,Variable'
setVariable(object, Var, lag = NULL, by = NULL)
## S4 method for signature 'StQList,Variable'
setVariable(object, Var, lag = NULL, by = NULL)
|
object |
Object of class StQ or StQList. |
Var |
Object of class Variable. |
Input object including the new variable.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
data(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')
ExampleStQ <- setVariable(ExampleStQ, Var)
ExampleStQList <- BuildStQList(list(MM012012 = ExampleStQ, MM022012 = ExampleStQ))
ExampleStQList <- setVariable(ExampleStQList, Var)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.