Learn R Programming

niarules (version 0.2.0)

add_attribute: 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)

Value

The updated rules list.

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.

Examples

Run this code
rules <- list()
new_rules <- add_attribute(rules, "feature1", "numerical", 0.2, 0.8, "EMPTY")

Run the code above in your browser using DataLab