Learn R Programming

JBTools (version 0.7.2.9)

isSeriesConstant: 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.

Value

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.