Hi Hendrik, if I understand you right, match.call() can help you.
All the best, Arne On Wednesday 01 September 2004 12:13, Henrik Andersson wrote: > I want to use the name that I assign to an object in the function that > produces the output, somewhat like below: > > stupid.function <- function(input){ > [body] > cat("Summarized output is ", output$summary, "Full output is given > by typing", assigned.name, "\n") > } > > assigned.name <- stupid.function(whatever) > > > or another example is a function that sinks the results to a text file > and names it assigned.name.txt . > > I checked the help for function, <-, assign but could not find it, is it > possible ? > > > --------------------------------------------- > Henrik Andersson > Netherlands Institute of Ecology - > Centre for Estuarine and Marine Ecology > P.O. Box 140 > 4400 AC Yerseke > Phone: +31 113 577473 > [EMAIL PROTECTED] > http://www.nioo.knaw.nl/ppages/handersson > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html -- Arne Henningsen Department of Agricultural Economics University of Kiel Olshausenstr. 40 D-24098 Kiel (Germany) Tel: +49-431-880 4445 Fax: +49-431-880 1397 [EMAIL PROTECTED] http://www.uni-kiel.de/agrarpol/ahenningsen/ ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html