[R] assign vector name

livia yn19832 at msn.com
Fri Nov 30 17:12:17 CET 2007


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.

More information about the R-help mailing list