Learn R Programming

GeneCycle (version 1.1.6)

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)

Value

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

Arguments

x

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

Author

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

Examples

Run this code
# 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