add_attribute {niarules} | R Documentation |
Add an attribute to the "rule" list.
Description
This function adds an attribute to the existing list.
Usage
add_attribute(rules, name, type, border1, border2, value)
Arguments
rules |
The current rules list. |
name |
The name of the feature in the rule. |
type |
The type of the feature in the rule. |
border1 |
The first border value in the rule. |
border2 |
The second border value in the rule. |
value |
The value associated with the rule. |
Value
The updated rules list.
Examples
rules <- list()
new_rules <- add_attribute(rules, "feature1", "numerical", 0.2, 0.8, "EMPTY")
[Package niarules version 0.1.0 Index]