Re: [R] expand.grip for permutations

2012-10-31 Thread trekvana
thank you both! that worked! -- View this message in context: http://r.789695.n4.nabble.com/expand-grip-for-permutations-tp4648067p4648076.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat

Re: [R] expand.grip for permutations

2012-10-31 Thread William Dunlap
Of trekvana > Sent: Wednesday, October 31, 2012 1:18 PM > To: r-help@r-project.org > Subject: [R] expand.grip for permutations > > if i were to have a block size of 4 people and i want to assign a treatment > combination to the entire block, there would be 16 different treatment &g

[R] expand.grip for permutations

2012-10-31 Thread trekvana
if i were to have a block size of 4 people and i want to assign a treatment combination to the entire block, there would be 16 different treatment combinations (, TTTP, TTPP, PTTP, etc.) i am trying to get all 16 permutations and i am able to use this code below. drugs=c('P','T'); comb=expand