[R] assign vector name

From: livia <yn19832_at_msn.com>
Date: Fri, 30 Nov 2007 08:12:17 -0800 (PST)

Hello,

I have got a vector, for example seq(1:10), and I have an array "name" defined before which contain the vector name I would like to use. So name[1]= "price". I would like to name the vector in the following codes:

paste("myname", name[1]) <- seq(1:10)

But it does not work. Could anyone give me some advice? Many thanks.

-- 
View this message in context: http://www.nabble.com/assign-vector-name-tf4918696.html#a14077275
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Fri 30 Nov 2007 - 16:15:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 01 Dec 2007 - 07:30:15 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.