I feel a little stupid for asking this question, but somehow I can't figure it out!
I am trying to see if participants are equally randomly assigned to two groups, so the contingency table looks like the below
Condition A Condition B
30 40
The main data look like the one below
Variable 1
P1 Condition A
P2 Condition B
P3 Condition A
P4 Condition A
P5 Condition B
P6 Condition A
. .
. .
. .
What would be the best way/function to check (using R) that they were equally distributed to either of the conditions?
Thank you a lot!