[R] deparse(substitute(foo))

2006-07-27 Thread Armstrong, Whit
I see that plot.default uses deparse(substitute(x)) to extract the character name of an argument and put it on the vertical axis. Hence: foo - 1:10 plot( foo ) will put the label foo on the vertical axis. However, for a function that takes a ... list as an input, I can only extract the first

Re: [R] deparse(substitute(foo))

2006-07-27 Thread Gabor Grothendieck
See ?match.call On 7/27/06, Armstrong, Whit [EMAIL PROTECTED] wrote: I see that plot.default uses deparse(substitute(x)) to extract the character name of an argument and put it on the vertical axis. Hence: foo - 1:10 plot( foo ) will put the label foo on the vertical axis. However, for

Re: [R] deparse(substitute(foo))

2006-07-27 Thread Marc Schwartz
On Thu, 2006-07-27 at 08:18 -0400, Armstrong, Whit wrote: I see that plot.default uses deparse(substitute(x)) to extract the character name of an argument and put it on the vertical axis. Hence: foo - 1:10 plot( foo ) will put the label foo on the vertical axis. However, for a

Re: [R] deparse(substitute(foo))

2006-07-27 Thread Armstrong, Whit
That works perfectly. Thanks, Whit -Original Message- From: Marc Schwartz [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 8:41 AM To: Armstrong, Whit Cc: r-help@stat.math.ethz.ch Subject: Re: [R] deparse(substitute(foo)) On Thu, 2006-07-27 at 08:18 -0400, Armstrong, Whit