correctionRules(x, strict = TRUE, allowed = getOption("allowedSymbols"), ...)
"correctionRules"(x, strict = TRUE, allowed = getOption("allowedSymbols"), file = TRUE, ...)
"correctionRules"(x, strict = TRUE, allowed = getOption("allowedSymbols"), ...)
"print"(x, ...)
"as.character"(x, oneliner = FALSE, ...)
"getVars"(E, ...)character or expression vector.TRUE an error is thrown if any forbidden symbol is used (see details).character vector of allowed symbolsfile=TRUE, x is treated as a filename from which the rules are read.correctionRulescorrectionRules returns an object of class correctionRulesgetVars returns a character vector of variable names.
correctWithRules allows for easy definition and execution
of simle deterministic replacement rules. These functions are ment to support very simple rules, such as if variable x is missing, then
set it to zero. Such actions usually basically model-free corrections stemming from subject-matter knowledge.
Given the nature of such rules, the type of rules are by default limited to R-statements containing
conditionals (if-else), arithmetic and logical operators, and brackets and assignment operators.
see getOption('allowedSymbols') for a complete list. If you cannot execute your 'simple' corrections with just these functions, we strongly recommend to
write a separate imputation or correction routine. However, it's a free world, so you may alter the list of allowed symbols
as you wish.getVars is overloaded from the editrules package.correctWithRules