isSeriesConstant: Check whether a vector is constant

Description Usage Arguments Details Value Author(s)

View source: R/isSeriesConstant.R

Description

isSeriesConstant checks whether a series is constant (up to a certain degree).

Usage

1
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


JBTools documentation built on May 2, 2019, 5:47 p.m.