I have a matrix for my latin squared design which randomised my conditions across my sentence stimuli. Is it possible to extract specific values from a matrix and sort them into groups?
E.g. I want to extract from my matrix the values 1, 2 and 3 and group them into an array called block 1
(then the same again for the values 4, 5, and 6 and group those into block 2