Message-ID: <1350936640935-4647065.post@n4.nabble.com>
Date: 2012-10-22T20:10:40Z
From: CMB123
Subject: Help with applying a function to all possible 2x2 submatrices
In-Reply-To: <CAM_vjunx=vv9n+DGwiBZQ_0qypenhKv8yxmNFR5uExD4aoh66Q@mail.gmail.com>
I apologize if the term "submatrix" was confusing - I am basically 2 rows and
2 columns from a r x c matrix to construct 2x2 matricies. Thus, the
choose(r,2) * choose(c,2) possible combinations.
For each matrix [(a,b), (c,d)], I am testing a > b, b > d, d > c, and c > a.
For the sake of simplicity I have combined these tests into a single
function (with the intent of applying it to the matrix, ideally).
I hope this is clearer...
--
View this message in context: http://r.789695.n4.nabble.com/Help-with-applying-a-function-to-all-possible-2x2-submatrices-tp4647048p4647065.html
Sent from the R help mailing list archive at Nabble.com.