I have a vector here and each element is composed of a double-digit. I put it into a data frame. But is there any smart way to break down the elements? For example how to make two extra columns based on the number in the vector? 23 2 3 like this!
combination <- c(11, 12, 13, 14, 15, 16, 23, 24, 25, 26, 34, 35, 36, 45, 46, 56) # How to do it smartly?
crop.combinations <- rep(combination, each=num.rep)