Skip to content
Prev 55943 / 398500 Next

Getting the real names of variables within functions

Hi Aaron,

try to use:

plot( x, y, xlab=deparse(substitute(x)), 
 ylab=deparse(substitute(y)) )

I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/396887
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: <adelmaas at MUSC.EDU>
To: "list" <r-help at stat.math.ethz.ch>
Sent: Monday, September 20, 2004 4:00 PM
Subject: [R] Getting the real names of variables within functions