Runlengths of a Time Series
Computes runlengths of an univariate 'timeSeries' object.
runlengths(x, ...)
x |
an univariate time series of class 'timeSeries'. |
... |
arguments to be passed. |
returns an object of class timeSeries
.
## random time series - set.seed(4711) x <- rnorm(12) tS <- timeSeries(data=x, charvec=timeCalendar(), units="x") tS ## return runlengths - runlengths(tS)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.