[R] Getting the name of an object as character

From: Ali - <saveez_at_hotmail.com>
Date: Thu 28 Apr 2005 - 09:03:15 EST

This could be really trivial, but I cannot find the right function to get the name of an object as a character.

Assume we have a function like:

getName <- function(obj)

Now if we call the function like:


and 'blabla' is not a defined object, I want getName to return "blabla". In other word, if




I want to define a paste function which returns the same character by:


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Apr 28 09:15:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:27 EST