Re: [R] name of object in quotes

2007-05-23 Thread Bill.Venables
Wednesday, 23 May 2007 8:14 PM To: R-help@stat.math.ethz.ch Subject: [R] name of object in quotes I am writing a function in which, at some point, I to recuperate the name of a previous object in quotes. I am currently using the function Cs() from the Hmisc library but the result is: foo <- fu

[R] name of object in quotes

2007-05-23 Thread Gonzalo Rivero
I am writing a function in which, at some point, I to recuperate the name of a previous object in quotes. I am currently using the function Cs() from the Hmisc library but the result is: foo <- function(xvar) { variable <- Cs(xvar) return(variable) } foo(x1) > "xvar" when I would expecte