is.constant function

Simple Check for Constant Time Series

Simple Check for Constant Time Series

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

is.constant(x)

Arguments

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

Returns

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

Author(s)

Korbinian Strimmer (https://strimmerlab.github.io/).

Examples

# 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) )
  • Maintainer: Miika Ahdesmaki
  • License: GPL (>= 3)
  • Last published: 2025-04-02

Useful links