Learn R Programming

GeneCycle (version 1.1.5)

is.constant: 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.

Examples

Run this code
# NOT RUN {
# 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) )

# }

Run the code above in your browser using DataLab