On Mon, Sep 7, 2009 at 11:26 AM, baptiste auguie <
baptiste.aug...@googlemail.com> wrote:

> Hi,
>
> Try this,
>
> myFUN <- function(FUN) {
>  return(deparse(substitute(FUN)))
> }
>
>
Thanks - that's it

Rainer


> HTH,
>
> baptiste
>
> 2009/9/7 Rainer M Krug <r.m.k...@gmail.com>
>
>> Hi
>>
>> I have the following function which should return the name of FUN:
>>
>> myFUN <- function(FUN) {
>>  return( THE_NAME_OF_FUN(FUN))
>> }
>>
>> Is it possible? What do I have tio use here instead of THE_NAME_OF_FUN?
>>
>> Thanks,
>>
>> Rainer
>>
>> --
>> Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch
>> University, South Africa
>>
>>        [[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.
>>
>
>
>
> --
> _____________________________
>
> Baptiste AuguiƩ
>
> School of Physics
> University of Exeter
> Stocker Road,
> Exeter, Devon,
> EX4 4QL, UK
>
> http://newton.ex.ac.uk/research/emag
> ______________________________
>
>


-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch
University, South Africa

        [[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