I have three vectors.
v1 <- c("A", "C", "D", "E")
v2 <- c("A", "E", "G")
v3 <- c("C", "E", "S", "T")
I want all possible combinations but keeping the order, this is, in position 1 there can only be elements of v1, in position 2 elements of v2 and in position 3 elements of v3.
Some examples would be:
AAT; AES
Some examples of what it cannot happen are:
SDA; GAT