Description Usage Arguments Value Author(s) Examples
is.constant
is a utility function that
checks whether a time series is constant.
1 | 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://www.strimmerlab.org/).
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) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.