[R] global variable

Peter Malewski y0004379 at tu-bs.de
Fri Jan 7 16:14:11 CET 2000

On Fri, 7 Jan 2000, Christine Serres wrote:

> Hi,
> I would like to know if it is possible to make global variables in R.
> My problem is that I use the same data frame in many different functions
> that I have written, but it implies a very big waste of time because it
> slow down the program.
> So I would use my data frame without need to copy it each time in
> another function to have a faster program execution.
> How can I do ??

You can set 


and use 


in your functions, but make sure you don't use names which are already in


** To YOU I'm an atheist; to God, I'm the Loyal Opposition. Woody Allen **
P.Malewski					Tel.: 0531 500965
Maschplatz 8					Email: P.Malewski at tu-bs.de
************************38114 Braunschweig********************************

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list