A combination with 36??
You ask for combination and I gave you combination() function, now If you want to repeat allowed, here you have 21 combinations:
Your_combinations <- combinations(6, 2, v = 1:6, repeats.allowed = T)
Your_combinations
Combinations: Enumerates the possible combinations of a specified size from the elements of a vector.
Your_combinations <- combinations(6, 2, v = 1:6)
Your_combinations
15 :
And when someone gives you a solution, give a solution approvement or at least contribute giving a like as appear in the main page.
Greetings!!