s-news
[Top] [All Lists]

All possible pair-wsie combinations

To: <s-news@lists.biostat.wustl.edu>
Subject: All possible pair-wsie combinations
From: "sierra.howry" <sierra.howry@sbcglobal.net>
Date: Mon, 28 Apr 2003 12:02:04 -0500
Users:
 
I have
a_seq(1:5)
b_seq(1:5)
 
What is an easy method of finding the twenty five number combinations and allocating to a (25,2) vector where column 1 is a values and column 2 is the b values.  I need these index values to pull values from a 5X5 matrix.
<Prev in Thread] Current Thread [Next in Thread>