[R] Obtaining names of further arguments ('...')
Arne Henningsen
ahenningsen at email.uni-kiel.de
Sun Dec 9 14:28:17 CET 2007
Hi,
I would like to obtain the names of all objects that are provided as further
arguments ("...") in a function call. I have created a minimal example that
illustrates my wish (but isn't useful otherwise):
f1 <- function( ... ) return( deparse( substitute( ... ) ) )
x1 <- 1
x2 <- 2
x3 <- 3
f1( x1, x2, x3 )
[1] "x1"
However, I would like to obtain the names of *all* further arguments,
i.e. "x1", "x2", and "x3".
Is this possible in R? Does anybody know how to do this?
Thanks,
Arne
--
Arne Henningsen
Department of Agricultural Economics
University of Kiel
Olshausenstr. 40
D-24098 Kiel (Germany)
Tel: +49-431-880 4445 or +49-4349-914871
Fax: +49-431-880 1397
ahenningsen at agric-econ.uni-kiel.de
http://www.uni-kiel.de/agrarpol/ahenningsen/
More information about the R-help
mailing list