Skip to content
Prev 168352 / 398502 Next

retrieving variables values from a function

Assuming you _really_ want to do this check out '<<-' and closures... And remember that your code will probably make other people cry when they go to debug it. 

Krzysztof

Sent via BlackBerry by AT&T

-----Original Message-----
From: jim holtman <jholtman at gmail.com>

Date: Tue, 27 Jan 2009 09:43:17 
To: diego Diego<dhabbyc at gmail.com>
Cc: <r-help at 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 have to, think about it
again.
On Tue, Jan 27, 2009 at 8:54 AM, diego Diego <dhabbyc at gmail.com> wrote:

  
    
Message-ID: <1833384572-1233069195-cardhu_decombobulator_blackberry.rim.net-1605296147-@bxe003.bisx.prod.on.blackberry>
In-Reply-To: <644e1f320901270643i1ef7c0d8wf15cf216a21a104d@mail.gmail.com>