Learn R Programming

Rspc (version 1.2.2)

Rule2: Rule 2

Description

Nine points in a row are on one side of the central line.

Usage

Rule2(x, cl, nPoints = 9, ...)

Arguments

x

Numerical vector

cl

central line, single number

nPoints

Sequence of consequtive points to be evaluated

...

unspecified arguments of a function

Value

Vector of the same length as x

Details

0 means: ok 1 means: violation

inequality used during evaluation

Examples

Run this code
# NOT RUN {
Rule2(x = rnorm(20), cl=0, nPoints = 9)
# }

Run the code above in your browser using DataLab