> f <- function(x)deparse(substitute(x)) > f(pi) [1] "pi"
answer the question? spencer graves
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?
Christoph.
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help