Simple Check for Constant Time Series
is.constant
is a utility function that checks whether a time series is constant.
is.constant(x)
x
: vector or matrix with time series data (one time series per column)A vector with a boolean statement (TRUE
or FALSE
) for each time series.
Korbinian Strimmer (https://strimmerlab.github.io/).
# 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) )
Useful links