Description Usage Arguments Value Author(s) Examples
n choose 2 tells how many pairs can be made from n objects, choose.pairs(n)
gives the indices into a vector of objects of length n
.
1 | choose.pairs(n)
|
n |
a scalar, eg 10 |
2 column matrix
, with n choose 2 rows, and indices for each pair in
a row.
Mark Cowley, 28 Jan 2005
1 | choose.pairs(4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.