[R] Get inside a function the name of a variable called as argument?
Julien Roux
Julien.Roux at unil.ch
Tue Apr 29 15:53:02 CEST 2008
Hi list,
I created a function to plot my data:
plot_function(vector)
I want to write the name of the argument vector in the legend/title of
the plot.
For example if I call:
> plot_function(my_vector)
I want "my_vector" to be written in the legend or title and so retrieve
the name of this object as a string.
Is it possible to achieve this?
Thanks a lot for your help
Julien
--
Julien Roux, PhD student
http://www.unil.ch/dee/page22707.html
Department of Ecology and Evolution
Biophore, University of Lausanne, 1015 Lausanne, Switzerland
tel: +41 21 692 4221 fax: +41 21 692 4165
More information about the R-help
mailing list