Re: [Rd] Retrieving function name

2006-11-09 Thread Peter Dalgaard
"Tom McCallum" <[EMAIL PROTECTED]> writes: > Hi, > > Does anyone know how I can retrieve a function name, for example > > If I have a function f as follows: > > f <- function( myfunc ) { > print( name_of(myfunc) ); > } > > I want to know what I should have as "name_of" such that I could

Re: [Rd] Retrieving function name

2006-11-09 Thread Dimitris Rizopoulos
t: Thursday, November 09, 2006 4:28 PM Subject: [Rd] Retrieving function name > Hi, > > Does anyone know how I can retrieve a function name, for example > > If I have a function f as follows: > > f <- function( myfunc ) { > print( name_of(myfunc) ); > } > > I wa

[Rd] Retrieving function name

2006-11-09 Thread Tom McCallum
Hi, Does anyone know how I can retrieve a function name, for example If I have a function f as follows: f <- function( myfunc ) { print( name_of(myfunc) ); } I want to know what I should have as "name_of" such that I could call this with : f( median ) and it would print "media