You might want to make use of the "environment" concept.  Personally
I find it rather head-twisting, but very powerful and useful.  The local()
function could be useful to you.

Be prepared to do a bit of study, read the documentation *very* carefully,
and do quite a bit of experimentation if you go that route.

Good luck.

     cheers,

         Rolf Turner

On 03/03/12 23:44, Alaios wrote:
> Thanks a lot!
>
> Greate reference
>
>
>
> ________________________________
>   From: Patrick Burns<pbu...@pburns.seanet.com>
>
> Cc: R help<R-help@r-project.org>
> Sent: Saturday, March 3, 2012 10:28 AM
> Subject: Re: [R] "Global" Variable in R
>
> Possible, but not necessarily easier
> in the long run.  See Circle 6 of
> 'The R Inferno'.
>
> http://www.burns-stat.com/pages/Tutor/R_inferno.pdf
>
> On 03/03/2012 08:56, Alaios wrote:
>> Dear all, I would like to ask you if there is a way
>> to define a global variable in R?
>>
>> I am having a bunch of function and I think the easier would be to have a 
>> global function defined at some point...
>>
>>
>> Would that be possible?
>>
>> Regards
>> Alex
>>
>>      [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> 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.
>>
>
>
> ______________________________________________
> 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.


        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to