HasChange: For a given vector x, for each position, return whether the...

Description Usage Arguments Value

View source: R/HasChange.R

Description

For a given vector x, for each position, return whether the value at that position is different from the position k places away, with "different" determined by epsilon. If there is no position k places away, then there is no change.

Usage

1
HasChange(x, k, epsilon)

Arguments

x

numerical vector of interest

k

number of positions

epsilon

minimally detectable change

Value

cv a vector of booleans for whether or not there was a change.


johnjosephhorton/rAutor documentation built on March 19, 2018, 7 a.m.