Re: [R] Latest question

2014-03-22 Thread eliza botto
Thankyou very much arun,I worked perfectly.:D Eliza Date: Sat, 22 Mar 2014 13:18:21 -0700 From: smartpink...@yahoo.com Subject: Re: Latest question To: r-help@r-project.org CC: eliza_bo...@hotmail.com HI Eliza, No problem. This should be faster: res2 - matrix(as.vector(

Re: [R] Latest question

2014-03-22 Thread arun
HI Eliza, No problem. This should be faster: res2 - matrix(as.vector( mat1[row.names(mat1) %in% df1$Ry,colnames(mat1) %in% df1$Rx]),nrow=120, dimnames=list(NULL,colnames(res))) identical(res,res2) #[1] TRUE A.K. On Saturday, March 22, 2014 4:14 PM, eliza botto eliza_bo...@hotmail.com