Noah Silverman wrote: > > > I have several "global" variables that I want to change with a given > function. (The variable has a different value after the function is > called.) > >
Berend Hasselman wrote: > > > Maybe this helps > > ?`<<-` > It helps to get the job done, but the OP asked for "best practices", which it is definitively not. You might check the docs for "assign" or search the list for this term (<<- searching is difficult) to finde a more fine-grained alternative within an explicit environment. Dieter -- View this message in context: http://r.789695.n4.nabble.com/Variable-scope-in-functions-best-practices-tp3690026p3693582.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.