Hello!
I would like to create a new column that repeats the numbers 1-6 for each subject. The numbers correspond to trials in a block.
I would like something that looks like this:
subj trial_index trial
1 103 1
1 106 2
1 109 3
1 112 4
1 115 5
1 118 6
1 121 1
1 124 2
1 127 3
1 130 4
1 133 5
1 136 6
.....
2 103 1
2 106 2
2 109 3
What would be a good way to do this? Many thanks!