Re: [R] getting multiple argument names

2008-06-27 Thread Gabor Grothendieck
Try: RSiteSearch("names of objects passed as ...") On Fri, Jun 27, 2008 at 11:48 AM, whizvast <[EMAIL PROTECTED]> wrote: > > hi, all- > > i wrote a function that accept multiple arguments, but don't know how to > assign names automatically. run the following code: > > foo <- function (...) { >

Re: [R] getting multiple argument names

2008-06-27 Thread Bert Gunter
nentech Nonclinical Statistics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of whizvast Sent: Friday, June 27, 2008 8:48 AM To: r-help@r-project.org Subject: [R] getting multiple argument names hi, all- i wrote a function that accept multiple arguments, but don&#

[R] getting multiple argument names

2008-06-27 Thread whizvast
hi, all- i wrote a function that accept multiple arguments, but don't know how to assign names automatically. run the following code: foo <- function (...) { x = list(...) names(x) <- deparse(substitute(...)) x } a = 1; b = 2; c = 3 y <- foo( a, b, c) names(y) as you can see, only the fir