| simplify_fixed_variables {validatetools} | R Documentation |
Simplify fixed variables
Description
Detect variables of which the values are restricted to a single value by the rule set. Simplify the rule set by replacing fixed variables with these values.
Usage
simplify_fixed_variables(x, eps = 1e-08, ...)
Arguments
x |
|
eps |
detected fixed values will have this precission. |
... |
passed to |
Value
validator object in which
See Also
Other redundancy:
detect_fixed_variables(),
detect_redundancy(),
is_implied_by(),
remove_redundancy(),
simplify_rules()
Examples
library(validate)
rules <- validator( x >= 0
, x <= 0
)
detect_fixed_variables(rules)
simplify_fixed_variables(rules)
rules <- validator( x1 + x2 + x3 == 0
, x1 + x2 >= 0
, x3 >= 0
)
simplify_fixed_variables(rules)
[Package validatetools version 0.5.2 Index]