Re: [R] Selectively Removing objects

2009-02-02 Thread Paulo Grahl
; >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Paulo Grahl >> Sent: Monday, February 02, 2009 6:17 AM >> To: r-help@r-project.org >> Subject: [R] Selectively Removing objects >>

[R] Selectively Removing objects

2009-02-02 Thread Paulo Grahl
Dear list members, Does anyone know how to use rm() to remove only variables but not declared functions from the environment ? I understand I could name all the functions with, let's say "f_something", make sure that all variables do not start with "f_" and then remove all BUT objects starting wit

Re: [R] Selectively Removing objects

2009-02-02 Thread Paulo Grahl
, > you'll need ls(all=TRUE) > > KK > > On Mon, Feb 2, 2009 at 3:16 PM, Paulo Grahl wrote: >> >> Dear list members, >> >> Does anyone know how to use rm() to remove only variables but not >> declared functions from the environment ? >> I und

[R] Functions returning functions

2009-05-20 Thread Paulo Grahl
Dear All: I have a question regarding the behavior of functions. Say I define a function that returns another function : A <- function(parameters) { # calculations w/ parameters returning 'y' tmpf <- function(x) { # function of 'y' } return(tmpf) } The value of the parameters are s

Re: [R] Functions returning functions

2009-05-20 Thread Paulo Grahl
Thanks a lot ! regards, Paulo Gustavo Grahl, CFA On Wed, May 20, 2009 at 8:31 AM, Romain Francois wrote: > Paulo Grahl wrote: >> >> Dear All: >> >> I have a question regarding the behavior of functions. >> Say I define a function that returns another funct