Skip to content

pass by reference -- how to do it

1 message · Liaw, Andy

#
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}}