is.constant {GeneTS}R Documentation

Simple Check for Constant Time Series

Description

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

Usage

is.constant(x)

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 (http://www.stat.uni-muenchen.de/~strimmer/).

Examples

# load GeneTS library
library(GeneTS)

# 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) )


[Package GeneTS version 2.3 Index]