I have this table :
record_id result date_start date_end
1 1 pos
2 1 26/06/2019 28/06/2019
3 1 27/06/2019 29/06/2019
4 1 28/06/2019 30/06/2019
5 1 29/06/2019 01/07/2019
6 2 neg
7 2 01/07/2019 03/07/2019
8 2 02/07/2019 04/07/2019
9 2 03/07/2019 05/07/2019
10 2 04/07/2019 06/07/2019
11 2 05/07/2019 07/07/2019
12 3 pos
13 3 07/07/2019 09/07/2019
14 3 08/07/2019 10/07/2019
I want to calculate the difference of date for each row, no problem with that. What i want after that is to analyse the group of "pos" and "neg" separately. But i have not the value of result in my data when i have the date. This is data imported from REDCap, with repeat instruments. I use tidyverse, and i think dplyr could help, isn't it a pivot_wider i must do ? I've try, but no way ...
Thanks if anyone could help ...