Skip to content

Assign with Paste Problem

2 messages · Sparks, John, Baptiste Auguie

#
Dear R Helpers,

I am trying to change the name of an object using the assign function. 
When I use paste on the new object but not the old, everything is fine:
The new object is a direct copy of the old object.  When I use a paste for
both the new and the old object, however, the new object is simply the
character representation of the old object name, not the old object
itself.

The example below uses quantmod, but you don't need that to see the nature
of the problem.

How can I get the new object to be a complete copy of the old object when
I use paste in both sides of the assign?

Your help would be most appreciated.
--John Sparks
[1] "NYSE.F.f"
Financial Statement for NYSE:F
Retrieved from google at 2011-04-12 20:03:20
Use "viewFinancials" or "viewFin" to view
Financial Statement for NYSE:F
Retrieved from google at 2011-04-12 20:03:20
Use "viewFinancials" or "viewFin" to view
Financial Statement for NYSE:F
Retrieved from google at 2011-04-12 20:03:20
Use "viewFinancials" or "viewFin" to view
[1] "NYSE.F.f"
#
Hi,

You probably need ?get, though you might want to read this first,

library(fortunes)
fortune(236)

HtH,

baptiste
On 13 April 2011 13:04, Sparks, John James <jspark4 at uic.edu> wrote: