Re: [R] Filling in empty arrays/lists from using "paste" function

2009-08-25 Thread David Winsemius
On Aug 25, 2009, at 3:52 AM, Uwe Ligges wrote: I highly suggest to rethink your problem in a way that you store the things labelled, e.g., TA1 to TA5 (as well as all the others) as the elements of a list TA. This way you have just one object TA that can easily be accessed by index operatio

Re: [R] Filling in empty arrays/lists from using "paste" function

2009-08-25 Thread Uwe Ligges
I highly suggest to rethink your problem in a way that you store the things labelled, e.g., TA1 to TA5 (as well as all the others) as the elements of a list TA. This way you have just one object TA that can easily be accessed by index operations and the code looks much cleaner in the end. Bes

[R] Filling in empty arrays/lists from using "paste" function

2009-08-24 Thread Steven Kang
Dear R users, I am trying to fill in arrays (5 different according to distinct "id") from objects produced from arbitrary data set below. a <- data.frame(id=rep(c("idA1","idA2","idA3","idA4","idA5"),2),pro=c("bb","uu","ee","tt","uu","gg","tt","bb","gg","ee"),sal=rpois(10,2)) idpro sa