On Sunday 09 December 2007 15:09, Duncan Murdoch wrote
> [...] To get what you
> want, use match.call() to get the call in unevaluated form, and then
> process it.  For example,
>
> f2 <- function( ... ) {
>    call <- match.call()
>    args <- as.list(call)[-1]
>    unlist(lapply(args, deparse))
> }
>
>  > f2(x1, x2, x3)
>
> [1] "x1" "x2" "x3"
>
>  > f2( x1 + x3, mean(x2), 3)
>
> [1] "x1 + x3"  "mean(x2)" "3"
>
> If your function has arguments other than ... you'll need a bit more
> work to remove them.  They'll end up as the names of the values in the
> final result.

This does exactly what I wanted!
@Duncan: Thank you very much for your quick and helpful answer!

Best wishes,
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
[EMAIL PROTECTED]
http://www.uni-kiel.de/agrarpol/ahenningsen/

Attachment: pgp6narbSiNg1.pgp
Description: PGP signature

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to