powered by
This function creates all permutations of a given vector.
vector
permutations(x)
A list of all permutations of x.
list
x
[atomic()] Any vector.
atomic()
Modified version of https://stackoverflow.com/a/20199902/15157768.
Other vector helpers: check_numeric_vector(), check_probability_vector(), chunk_vector(), insert_vector_entry(), map_indices(), match_numerics(), split_vector_at(), subsets(), vector_occurrence()
check_numeric_vector()
check_probability_vector()
chunk_vector()
insert_vector_entry()
map_indices()
match_numerics()
split_vector_at()
subsets()
vector_occurrence()
permutations(1:3) permutations(LETTERS[1:3])
Run the code above in your browser using DataLab