Description Usage Arguments Value Examples
Create all [un]ordered pairs from two vectors
1 2 3 | make_ordered_pairs(x, y = NULL)
make_unordered_pairs(x, y = NULL)
|
x, y |
Atomic vectors to be paired off |
A data frame with column names "x" and "y" where every row corresponds to a pair.
1 2 3 4 5 | make_ordered_pairs(1:3, 1:2)$x == c(1, 2, 3, 1, 2, 3)
make_ordered_pairs(1:3, 1:2)$y == c(1, 1, 1, 2, 2, 2)
make_unordered_pairs(1:3, 1:2)$x == c(1, 2, 3, 2, 3)
make_unordered_pairs(1:3, 1:2)$y == c(1, 1, 1, 2, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.