Skip to content
Prev 44440 / 398528 Next

pass by reference -- how to do it

One needs to be more careful with "<<-" in R than in S-PLUS, because of the
scoping rule difference.  ?"<<-" says:

     The operators '<<-' and '->>' cause a search to made through the
     environment for an existing definition of the variable being
     assigned.  If such a variable is found then its value is
     redefined, otherwise assignment takes place globally. Note that
     their semantics differ from that in the S language, but is useful
     in conjunction with the scoping rules of R.

Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}