Hello experts!
Is there a way to send an internal variable from a function to the
workspace, besides the function output, of course
Thanks!!
D.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
I guess by workspace you mean global environment. I believe this is
generally considered a bad practice, but see ?assign and ?-
baptiste
On 27 Jan 2009, at 13:54, diego Diego wrote:
Hello experts!
Is there a way to send an internal variable from a function to the
workspace, besides the
Just have it as a return value and then assign it when you return.
You should have have side effects coming from your functions. There
are ways of doing it, but it you think you have to, think about it
again.
On Tue, Jan 27, 2009 at 8:54 AM, diego Diego dhab...@gmail.com wrote:
Hello experts!
To: diego Diegodhab...@gmail.com
Cc: r-help@r-project.org
Subject: Re: [R] retrieving variables values from a function
Just have it as a return value and then assign it when you return.
You should have have side effects coming from your functions. There
are ways of doing it, but it you think you
4 matches
Mail list logo