Hi,

Try this,

myFUN <- function(FUN) {
 return(deparse(substitute(FUN)))
}

HTH,

baptiste

2009/9/7 Rainer M Krug <r.m.krug@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
______________________________

	[[alternative HTML version deleted]]


