Re: [R] How sum all possible combinations of rows, given 4 matrices

2013-06-10 Thread Estigarribia, Bruno
-help@r-project.org Cc: Sent: Monday, May 27, 2013 11:24 AM Subject: [R] How sum all possible combinations of rows, given 4 matrices Hello all, I have 4 matrices with 3 columns each (different number of rows though). I want to find a function that returns all possible 3-place vectors corresponding

Re: [R] How sum all possible combinations of rows, given 4 matrices

2013-05-28 Thread Estigarribia, Bruno
75 #[6,] 47 89 64 A.K. - Original Message - From: Estigarribia, Bruno estig...@email.unc.edu To: r-help@R-project.org r-help@r-project.org Cc: Sent: Monday, May 27, 2013 11:24 AM Subject: [R] How sum all possible combinations of rows, given 4 matrices Hello all, I have 4 matrices with 3

[R] How sum all possible combinations of rows, given 4 matrices

2013-05-27 Thread Estigarribia, Bruno
Hello all, I have 4 matrices with 3 columns each (different number of rows though). I want to find a function that returns all possible 3-place vectors corresponding to the sum by columns of picking one row from matrix 1, one from matrix 2, one from matrix 3, and one from matrix 4. So basically,

Re: [R] How sum all possible combinations of rows, given 4 matrices

2013-05-27 Thread Bert Gunter
Homework? We don't do homework here. -- Bert On Mon, May 27, 2013 at 8:24 AM, Estigarribia, Bruno estig...@email.unc.edu wrote: Hello all, I have 4 matrices with 3 columns each (different number of rows though). I want to find a function that returns all possible 3-place vectors

Re: [R] How sum all possible combinations of rows, given 4 matrices

2013-05-27 Thread Jeff Newmiller
I expect the answer to involve manipulating indices. But why do you need to do this? This looks suspiciously like homework, and there is a no-homework policy on this list (see the Posting Guide). --- Jeff Newmiller

Re: [R] How sum all possible combinations of rows, given 4 matrices

2013-05-27 Thread arun
@R-project.org r-help@r-project.org Cc: Sent: Monday, May 27, 2013 11:24 AM Subject: [R] How sum all possible combinations of rows, given 4 matrices Hello all, I have 4 matrices with 3 columns each (different number of rows though). I want to find a function that returns all possible 3-place