'get' can give me the source code for a function. Is there a way to
get the source code for a variable? In the following example, the
source code for x is 'y*y'. Is there a way to get it using the string
'x'?


> f=function(){print('xx')}
> get('f')
function(){print('xx')}
> y=3
> x=y*y
> get('x')
[1] 9

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to