From: Cliff Clive <cliffclive_at_gmail.com>

Date: Thu, 21 Apr 2011 12:08:37 -0700 (PDT)

Date: Thu, 21 Apr 2011 12:08:37 -0700 (PDT)

I've been reading some code from an example in a blog post (
http://www.maxdama.com/ here ) and I came across an operator that I hadn't
seen before. The author used a <<- operator to update a variable, like so:

ecov_xy <<- ecov_xy+decay*(x[t]*y[t]-ecov_xy)

At first I thought it was a mistake and tried replacing it with the usual <- assignment operator, but I didn't get the same results. So what does the double arrow <<- operator do?

-- View this message in context: http://r.789695.n4.nabble.com/What-does-the-operator-mean-tp3466657p3466657.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help_at_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.Received on Thu 21 Apr 2011 - 19:52:23 GMT

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Thu 21 Apr 2011 - 22:00:33 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*