Re: [R] Getting names of objects passed with "..."

From: Mike Meredith <>
Date: Fri, 01 Jun 2007 03:17:26 -0700 (PDT)

Thanks, Henrik, but 'foo' doesn't do what I want:

x <- "some stuff"
second <- "more stuff"

foo(first=x, second)
[1] "first" ""

Brian's right:
>...he wants the argument name if there is one otherwise the
> deparsed argument value, but clarification would be helpful.

The function using this compares estimates of animal densities, CIs, etc using different models, with one object containing the results of one model. It extracts key results and AIC from these objects and does a summary matrix, with lowest AIC at the top, so the row names need to reflect the model used.

If the object name is sufficiently explanatory -- eg. point.est.hazardRate -- then the deparsed argument value is fine as row name. But we need the option to be more specific if necessary, eg. with "halfNormal=x1, hazardRate=x2". Just like 'rbind', in fact.

Thanks, Mike

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 01 Jun 2007 - 10:42:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 01 Jun 2007 - 14:31:15 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.