| permutations | R Documentation |
This function creates all permutations of a given vector.
permutations(x)
x |
[ |
A list of all permutations of x.
Modified version of https://stackoverflow.com/a/20199902/15157768.
Other vector helpers:
check_numeric_vector(),
check_probability_vector(),
chunk_vector(),
equidistant_vectors(),
insert_vector_entry(),
map_indices(),
match_numerics(),
split_vector_at(),
subsets(),
vector_occurrence()
permutations(1:3)
permutations(LETTERS[1:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.