is.constant: Simple Check for Constant Time Series

Description Usage Arguments Value Author(s) Examples

View source: R/is.constant.R

Description

is.constant is a utility function that checks whether a time series is constant.

Usage

1

Arguments

x

vector or matrix with time series data (one time series per column)

Value

A vector with a boolean statement (TRUE or FALSE) for each time series.

Author(s)

Korbinian Strimmer (https://www.strimmerlab.org/).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# load GeneCycle library
library("GeneCycle")

# load data set
data(caulobacter)

# any constant genes?
sum(is.constant(caulobacter))

# but here:
series.1 <- rep(1, 10)
series.2 <- seq(1, 10)
is.constant( cbind(series.1, series.2) )

GeneCycle documentation built on Jan. 6, 2021, 1:10 a.m.