createDictRule: createDictRule

Description Usage Arguments Examples

Description

A function to create an object of class DictionaryRule

Usage

1
createDictRule(index, range = c(-15:-1, 1:15))

Arguments

index

A SingleRule or DoubleRule or one of the following indices:
1 - IdenSingleRule,
2 - AddConstSingleRule,
3 - MultConstSingleRule,
4 - DigSumSingleRule,
5 - AddDoubleRule,
6 - MultDoubleRule

range

The range from which constant values for the rules are generated. Default range is from -15 to 15 (excluding 0). For objects of class DoubleRule range is always set to NULL.

Examples

1
2
createDictRule(4,range=c(7,2,15)) # creates a rule of multiplication by constant
# constant can be equal to 7, 2, or 15

ruleR documentation built on May 2, 2019, 5:49 p.m.