Re: [R] statistics on "runs" of numbers

2008-12-08 Thread tolga . i . uzuner
Many thanks, Tolga Albyn Jones <[EMAIL PROTECTED]> 08/12/2008 17:16 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] statistics on "runs" of numbers rle(x) gives the run length encoding of x. rle(x>0) or rle(sign(x)) will do this for positive and ne

Re: [R] statistics on "runs" of numbers

2008-12-08 Thread Albyn Jones
rle(x) gives the run length encoding of x. rle(x>0) or rle(sign(x)) will do this for positive and negative values of x. albyn On Mon, Dec 08, 2008 at 03:24:50PM +, [EMAIL PROTECTED] wrote: > Dear R Users, > > Is there a package or some functionality in R which returns statistics on > "runs

[R] statistics on "runs" of numbers

2008-12-08 Thread tolga . i . uzuner
Dear R Users, Is there a package or some functionality in R which returns statistics on "runs" of numbers, i.e. series of numbers with similar qualities in a time series ? For example, the number of +ves,-ves, histograms on cumulations in runs, etc. ? Thanks in advance, Tolga Generally, thi