I am a R beginner.If i want to show that throwing the two dice's all sample space like (1,1) (1,2) (1,3) (1,4) (1,5) (1,6) (2,1) (2,2) ... (2,6) (3,1) ... (6,6)
My thought is x<-1:6 y<-1:6, but i want to know how to generate (x,y). The question perplexed me a period of time.