Re: [R] assignment to a symbol created by paste

2006-04-13 Thread Thomas Lumley
On Thu, 13 Apr 2006, Chad Reyhan Bhatti wrote: > Hello, > > I am creating a number of objects that I wish to have a common name with > an index such as x1, x2, x3, ... I would like to do everyting in a loop to > make the code compact and minimize the probability of an error by typo. see FAQ 7.21

Re: [R] assignment to a symbol created by paste

2006-04-13 Thread Marc Schwartz (via MN)
On Thu, 2006-04-13 at 15:04 -0500, Chad Reyhan Bhatti wrote: > Hello, > > I am creating a number of objects that I wish to have a common name with > an index such as x1, x2, x3, ... I would like to do everyting in a loop to > make the code compact and minimize the probability of an error by typo.

[R] assignment to a symbol created by paste

2006-04-13 Thread Chad Reyhan Bhatti
Hello, I am creating a number of objects that I wish to have a common name with an index such as x1, x2, x3, ... I would like to do everyting in a loop to make the code compact and minimize the probability of an error by typo. A test problem may look like for (j in 1:10){ as.symbol(paste(