[R] retrieving variables values from a function

2009-01-27 Thread diego Diego
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

Re: [R] retrieving variables values from a function

2009-01-27 Thread baptiste auguie
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

Re: [R] retrieving variables values from a function

2009-01-27 Thread jim holtman
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!

Re: [R] retrieving variables values from a function

2009-01-27 Thread krzysztof . sakrejda
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