Skip to content
Back to formatted view

Raw Message

Message-ID: <BAY17-F281703DCA9942A7F4980B1D1220@phx.gbl>
Date: 2005-04-27T23:03:15Z
From: Ali -
Subject: Getting the name of an object as character

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:

getName(blabla)

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

paste("blabla")

returns

"blabla"

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

paste(blabla)