On Sat, Jun 12, 2010 at 11:40 PM, Worik R <wor...@gmail.com> wrote: > I was careless. > > Here is a better example of what I am trying to. With the '<<-' you > offered. > > ?<<- > > That was exactly what I needed, thankyou. >
Just as an aside I am assuming these are just examples to illustrate scope. In reality you would rarely use <<- and instead would just return the computed value as the value of the function. Also see cumsum and cumprod and check out this page: http://cran.r-project.org/web/views/Finance.html ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.