| To: | "Snews (E-mail)" <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | All combinations of dimensions |
| From: | "Alain Yamakana" <alain.yamakana@rogers.com> |
| Date: | Sun, 29 Feb 2004 20:22:26 -0500 |
Dear All, I would be very appreciative of your help with the following. Given a 3-D matrix M I would like to perform all submatrices M[-c(i,i+1),-c(j,j+1),-c(k,k+1)] for i in 1:nrow(M), j in 1:ncol(M), and k in 1:dim(M)[3] AND keep track of all combinations (1,1,1), (1,1,2), (1,1,3), etc. I tried expand.grid() function without success on a 2-D matrix. Regards, AY |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | How to find the dates?, Peng Huang |
|---|---|
| Next by Date: | All combinations of dimensions, Alain Yamakana |
| Previous by Thread: | How to find the dates?, Peng Huang |
| Next by Thread: | All combinations of dimensions, Alain Yamakana |
| Indexes: | [Date] [Thread] [Top] [All Lists] |