Hi all, I have a big dataset that is about 60 thousand observation as follows:
The first row has 60 questions that takes values from -2 to 2 and the first column corresponds to individuals
I want to create a subset of this data as follows:
Individual 0:
Where every question of those corresponds to the answers listed above.
I would greatly appreciate your help on this.
Thank you.
Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | Q8 | Q9 | Q10 | Q11 | Q12 | Q13 | Qn | |
0 | 0 | 1 | 2 | -1 | 1 | 0 | 0 | 1 | 1 | 1 | -2 | 1 | 2 | -- |
1 | 2 | -1 | 0 | 1 | 0 | 1 | -2 | -1 | 1 | 2 | 0 | 1 | 0 | -- |
2 | 1 | 0 | 1 | -1 | 2 | 2 | 0 | 1 | 1 | 0 | 0 | -1 | 0 | -- |
n | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- |
I want to create a subset of this data as follows:
Individual 0:
Q1 | Q2 | Q3 | Q4 | Q5 | Q6 |
Q7 | Q8 | Q9 | Q10 | Q11 | Q12 |
Q13 | Q14 | Q15 | Q16 | Q17 | Q18 |
Q19 | Q20 | Q21 | Q22 | Q23 | Q24 |
Q25 | Q26 | Q27 | Q28 | Q29 | Q30 |
Q31 | Q32 | Q33 | Q34 | Q35 | Q36 |
Q37 | Q38 | Q39 | Q40 | Q41 | Q42 |
Q43 | Q44 | Q45 | Q46 | Q47 | Q48 |
Q49 | Q50 | Q51 | Q52 | Q53 | Q54 |
Q55 | Q56 | Q57 | Q58 | Q59 | Q60 |
I would greatly appreciate your help on this.
Thank you.
Comment