You probably want

deparse(substitute(object))

See ?substitute.

> -----Original Message-----
> From: Christoph Lange [mailto:[EMAIL PROTECTED]
> Sent: 10 November 2003 16:06
> To: R Help List
> Subject: [R] Finding the name ob an object
> 
> 
> Security Warning: 
> If you are not sure an attachment is safe to open please contact  
> Andy on x234. There are 0 attachments with this message. 
> ________________________________________________________________ 
>  
> 
> 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?
> 
> Christoph.
> 
> -- 
> Christoph Lange
> MPI fuer biologische Kybernetik  |Phone: +49-7071-601-607|
> Postfach 2169, D-72012 Tuebingen |FAX:   +49-7071-601-616|
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>  
 
Simon Fear 
Senior Statistician 
Syne qua non Ltd 
Tel: +44 (0) 1379 644449 
Fax: +44 (0) 1379 644445 
email: [EMAIL PROTECTED] 
web: http://www.synequanon.com 
  
Number of attachments included with this message: 0 
  
This message (and any associated files) is confidential and\...{{dropped}}

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to