Skip to content
Prev 305780 / 398506 Next

Conditional operations in R

Have your read an Introduction to R? If not, do so before posting
further. There are also many "R for SAS users" tutorials on the web
I'm sure. Google or check CRAN. In particular, you need to understand
how indexing works. See ?"[" and ?subset

You will certainly have to define what you mean by "just over". Once
you do so, ?cumsum will do what you want (once you learn about
indexing in R).

-- Bert
On Tue, Sep 18, 2012 at 7:41 AM, ramoss <ramine.mossadegh at finra.org> wrote: