[R] Questions about paste and assign

From: Tong Wang <wangtong_at_usc.edu>
Date: Sun 14 Jan 2007 - 03:14:02 GMT


Hi,

    I would like to assign a value to a member b of the list a in position 3, by calling:

                                            assign( target, 2.34, 3)

My question is what the "target" should be. I tried target <- paste("a", $, "b") and something else, but haven't got the right answer yet.

BTW, if I attached a list named "mylist" in position 3, to refer to this environment, besides 3, what's the right name ?

Thanks a lot for any help

tong



R-help@stat.math.ethz.ch 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. Received on Sun Jan 14 14:24:11 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 14 Jan 2007 - 05:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.