Re: [R] question about deparse(substitute(...))

2011-01-14 Thread Gabor Grothendieck
On Thu, Jan 13, 2011 at 7:36 PM, Sean Zhang wrote: > Dear R helpers: > > I like to apply deparse(substitute()) on multiple arguments to collect the > names of the arguments into a character vector. > I used function test.fun as below. it works when there is only one input > argument. but it does n

Re: [R] question about deparse(substitute(...))

2011-01-13 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Sean Zhang > Sent: Thursday, January 13, 2011 4:37 PM > To: r-help@r-project.org > Subject: [R] question about deparse(substitute(...)) > > Dear R helpe

[R] question about deparse(substitute(...))

2011-01-13 Thread Sean Zhang
Dear R helpers: I like to apply deparse(substitute()) on multiple arguments to collect the names of the arguments into a character vector. I used function test.fun as below. it works when there is only one input argument. but it does not work for multiple arguements. can someone kindly help? test