Re: [R] Selecting and then joining data blocks

2013-04-26 Thread arun
15   19 #[28,]    4    8   12   16   20 A.K. - Original Message ----- From: arun To: Preetam Pal Cc: Sent: Thursday, April 25, 2013 9:03 AM Subject: Re: [R] Selecting and then joining data blocks HI Preetam, I created the matrices in a list because it was easier to create.  If you

Re: [R] Selecting and then joining data blocks

2013-04-25 Thread arun
[[1]]  B2<- lst1[[2]]  B3<- lst1[[3]]  B4<- lst1[[4]]  res2<-do.call(rbind,lapply(vec,function(i) get(paste0("B",i  identical(res,res2) #[1] TRUE A.K. - Original Message - From: Preetam Pal To: r-help@r-project.org Cc: Sent: Thursday, April 25, 2013 7:51 AM Subj

[R] Selecting and then joining data blocks

2013-04-25 Thread Preetam Pal
Hi all, I have 4 matrices, each having 5 columns and 4 rows .denoted by B1,B2,B3,B4. I have generated a vector of 7 indices, say (1,2,4,3,2,3,1} which refers to the index of the matrices to be chosen and then appended one on the top of the next: like, in this case, I wish to have the followin