Please suppose I have the following vector:
vec = c("A", "B", "C")
I want to be able to produce a vector to have the following output:
vec_combn = c("", "A", "B", "C", "A+B", "A+C", "B+C", "A+B+C")
This is all possible combinations including the empty set.
Is there any way to do this quickly?