Re: [R] Converting a character string into an object variable

2008-01-31 Thread Bill.Venables
ent: Friday, 1 February 2008 2:29 PM To: r-help@r-project.org Subject: [R] Converting a character string into an object variable R-helpers: Assume that I want to create a series of sequentially named R objects. For example, I might want to call these objects V1, V2, V3 ... V50. To do this

Re: [R] Converting a character string into an object variable

2008-01-31 Thread Benilton Carvalho
[EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Benilton Carvalho > Sent: Thursday, January 31, 2008 10:35 PM > To: Brant Inman > Cc: r-help@r-project.org > Subject: Re: [R] Converting a character string into an object variable > > assign(paste("V", i, sep=&q

Re: [R] Converting a character string into an object variable

2008-01-31 Thread Benilton Carvalho
assign(paste("V", i, sep=""), input.value[i]) b On Jan 31, 2008, at 11:28 PM, Brant Inman wrote: R-helpers: Assume that I want to create a series of sequentially named R objects. For example, I might want to call these objects V1, V2, V3 ... V50. To do this, I thought of some sort of l

[R] Converting a character string into an object variable

2008-01-31 Thread Brant Inman
R-helpers: Assume that I want to create a series of sequentially named R objects. For example, I might want to call these objects V1, V2, V3 ... V50. To do this, I thought of some sort of looping function like: input.value <- seq(1:50) * 3 for(i in 1:50){ paste("V", i, sep="") <- input.val