so I got Questionnaire Data where the same Questions got asked multiple times, sadly they didnt think of giving them different question_ids, but at least i have the timestamps of when they were answered. Similar to this
| person_id | question_id | answer | timestamp |
|---|---|---|---|
| 12 | q1l1 | 0.4 | 12:38 |
| 12 | q1l1 | 0.7 | 12:54 |
Is there a easy way to change the question id based on timestamps?
So to grab dublicates of the same question_id for the same person_id and compare the timestamps and set the question_ids to q1l1_1 and q1l1_2
| person_id | question_id | answer | timestamp |
|---|---|---|---|
| 12 | q1l1_1 | 0.4 | 12:38 |
| 12 | q1l1_2 | 0.7 | 12:54 |