fin-runlengths: Runlengths of a Time Series

Description Usage Arguments Value Examples

Description

Computes runlengths of an univariate 'timeSeries' object.

Usage

1

Arguments

x

an univariate time series of class 'timeSeries'.

...

arguments to be passed.

Value

returns an object of class timeSeries.

Examples

1
2
3
4
5
6
7
8
## random time series - 
   set.seed(4711)
   x <- rnorm(12)
   tS <- timeSeries(data=x, charvec=timeCalendar(), units="x")
   tS
   
## return runlengths -
   runlengths(tS)

timeSeries documentation built on Nov. 18, 2017, 4:11 a.m.