[R] How to share variables

From: Sergio Martino <s.martino_at_tno.it>
Date: Wed 02 Aug 2006 - 23:18:28 EST


I would like to realize in R a structure like the fortran common ie a way to declare some variable that can only be accessed by all the functions which need to.

Browsing the archive it seems that the simplest way is to declare the variables and the functions in a big function which wraps all. But this is impratical when the functions are big.

The environments seems to do the trick but I am not enough familiar with them to make my ways out.

Is there any example or pointers to easy but complete environment usage?

Thanks in Advance

Sergio Martino

R-help@stat.math.ethz.ch 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 Fri Aug 04 17:03:42 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 04 Aug 2006 - 18:17:27 EST.

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