Description Usage Arguments Value
Generate all possible pairs from a vector or a sequence of integer numbers
All possible pairs of values from a vector
1 2 3  | allPairsRcpp(n)
allPairs(x, unique = TRUE)
 | 
n | 
 maximum number of the sequence  | 
allPairsRcpp returns (n*(n-1)/2) x 2 integer matrix all unique combinations (pairs) of numbers from a sequence of integers 1..n
allPairs returns (n*(n-1)/2) x 2 matrix all combinations (pairs) of values from vector x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.