In R, how to get the results of combn() from a matrix into a vector without losing data?

Advertisements I know that combn() can give me all the unique combinations across a vector. However, it gives me a matrix output, and I want it as a vector. Wrapping the output in as.vector() makes every value individual, losing the purpose of running combn() in the first place. Imagine my dataset was c("a", "b", "c"),… Read More In R, how to get the results of combn() from a matrix into a vector without losing data?