sequenceR: function

Description Usage Arguments Value See Also Examples

Description

A function to generate numeric sequence of specified length. Is used in createTest but can be used separately. Note that this function doesn't check for constant sequences or too big/small elements in the numeric sequence!

Usage

1
sequenceR(start, rule, seqlen)

Arguments

start

vector from which starting values are generated

rule

rule that is to be used to generate numeric sequence

seqlen

the length of the numeric sequence (default value is 6)

Value

function returns a list containing of:

sequenceR[[1]]

numeric sequence as a list

sequenceR[[2]]

rule used to generate the sequence

See Also

conCheck, check, createSR, createDR

Examples

1
2
3
4
5
sequenceR(rule = new("AddConstSingleRule",
                     constantVal = 1,
                     previousRule = new("IdenSingleRule")),
                     start=99,
                     seqlen=6)

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