runlengths {timeSeries} | R Documentation |
Runlengths of a time series
Description
Computes runlengths of an univariate "timeSeries"
object.
Usage
runlengths(x, ...)
Arguments
x |
an univariate time series of class |
... |
arguments to be passed. |
Value
an object of class timeSeries
.
Examples
## random time series -
set.seed(4711)
x <- rnorm(12)
tS <- timeSeries(data=x, charvec=timeCalendar(), units="x")
tS
## return runlengths -
runlengths(tS)
[Package timeSeries version 4030.106 Index]