Re: [R] getting name from function?

2009-09-07 Thread Rainer M Krug
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 > >> Hi >> >> I have the following fun

Re: [R] getting name from function?

2009-09-07 Thread baptiste auguie
Hi, Try this, myFUN <- function(FUN) { return(deparse(substitute(FUN))) } HTH, baptiste 2009/9/7 Rainer M Krug > 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

[R] getting name from function?

2009-09-07 Thread Rainer M Krug
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 U