discFeatures: Summarizes the transitions between discrete states by phase

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculates the percentage of time in each state and the number transitions between states

Usage

1

Arguments

y

A vector with discrete states

Value

A named vector with the fraction of time spent in each state, and the number of transitions from one state to another

Author(s)

Landon Sego

See Also

transMap, sp.table

Examples

1
2
3
4
5
6
7
8
x <- c("a","a","a","b","b","a","a","c","c","b","b")
discFeatures(x)

discFeatures(c(TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE))

discFeatures(c(1, 1, 1, 2, 2))

discFeatures(c(rep(pi, 3), rep(exp(1), 3), rep(sqrt(2), 3)))

pnnl/qFeature documentation built on May 25, 2019, 10:22 a.m.