I'd like to randomly assign subjects into two equally sized groups and see all possible outcomes using R.
For instance, suppose there are 10 subjects, and I like to allocate them into the Treatment and Control groups. Then, there are (10!)/5!5! ways of assigning the subjects to the two groups. Instead of seeing one random result, I want to see all possible results. Ideally, I want to see the results something like the below
[1] T T T T T C C C C C
[2] T T T T C T C C C C
(omitted)
[252] C C C C C T T T T T
C: control group, T: treatment group.
Are there any R functions that can achieve this goal? Thank you