Last data update: 2014.03.03
|
R: Check whether a vector is constant
isSeriesConstant | R Documentation |
Check whether a vector is constant
Description
isSeriesConstant checks whether a series is constant (up to a certain degree).
Usage
isSeriesConstant(x, tresh.const = 1e-12, ratio.const = 0.05)
Arguments
x |
numeric vector: series to test.
|
tresh.const |
numeric: maximum deviation allowed which is still
considered to be constant.
|
ratio.const |
numeric: ratio of the series which is allowed to be
not constant for the whole series to be still
considered to be constant.
|
Details
isSeriesConstant checks whether the amount of values deviating from the
median of x for a higher value than tresh.const is bigger than ratio.const.
Value
logical: TRUE if series is constant, FALSE otherwise.
Author(s)
Jannis v. Buttlar
Results
|