I've got a list of participants that are listed multiple times in a column, I want them listed once. They have all completed an event a varying number of times. I need a column with the date for first attempt, second etc with NA if they haven't repeated.
df
participant date
1 a 2020-01-02
2 b 2020-09-25
3 c 2020-09-29
4 d 2020-10-07
5 d 2020-10-07
6 d 2020-11-08
7 a 2020-10-12
8 b 2020-10-13
participant date1 event1 date2 event2 date3 event3
1 a 2020-01-02 1 2020-10-12 2 NA NA
2 b 2020-09-25 1 2020-10-13 2 NA NA
3 c 2020-09-29 1 NA NA NA NA
4 d 2020-10-07 1 2020-11-07 2 2020-10-08 3