A few years ago, a relative played the lottery and got 4 out 6 numbers in one play and 2 out of 6 in the other, both plays were on the same ticket. Just for curiosity's sake, assuming that one could go back in time with that knowledge and play every combination from the play with 4 out of 6 numbers with every combination from 2 out of 6 numbers which totals 225 plays, how would one output everything in one line?
I can get the 15 combinations from 4/6 with
combn(c(16, 28, 5, 9, 13, 26), 4)
and another 15 from 2/6 with
comb(c(32, 29, 14, 6, 3, 14), 2)
I'd like to get all these combined into a single output which should output 225 combinations.