Description Usage Arguments See Also Examples
Returns a vector of all possible 2-item permutations for elements in a vector
1 | permutation(x, repeats = FALSE)
|
x |
A vector or an R object, which is coercible to one by as.vector(x, "numeric") |
repeats |
logical. Can elements combine with themselves? |
combn A function that executes this much better
expand.grid
1 | permutation(x = c("a", "b", "c"), repeats = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.