Displaying 1 result from an estimated 1 matches for "tp1478140p1478205".
2010 Feb 12
4
How to get the source code for the assignment of a variable?
'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