[R] Finding the name ob an object

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Nov 10 17:27:22 CET 2003


Christoph Lange wrote:

> Hi, all!
> 
> I want to give an object to a function and use the NAME of this object
> inside the function to build new objects based on this name.
> 
> How do I get the name of an object if I don't pass a string containing
> the name but the object itself?

  deparse(substitute(x))

Uwe Ligges




More information about the R-help mailing list