I'm not sure if the right words are permutations for this. I want to give a set of n vectors (i.e. [1,2], [3,4]and [2,3]) to rearrange them all and get the output
[1,3,2],[1,3,3],[1,4,2],[1,4,3],[2,3,2] etc.
Is there an operation in R that will do this?
source
share