Sarah Goslee wrote:
Leaving aside the question of whether this is a good thing to do,
Let's not leave that aside. Surely there is a much more
straight-forward way to accomplish what you want. Why not store
all the X's in a vector, and then you can avoid this for/assign/get
hack.
you
can
Leaving aside the question of whether this is a good thing to do, you
can accomplish what you want by changing the pos argument, which
by default does not save the variable to the global environment.
Reading the details section of ?assign and also ?environment may help.
I'd offer an example, but
2 matches
Mail list logo