I have that kind of data here is dput
df <- structure(list(start_date = structure(c(18312, 18313, 18314,
18316, 18317, 18318, 18319, 18320, 18321), class = "Date")), row.names = c(NA,
-9L), class = "data.frame")
looking so;
start_date
<date>
1 2020-02-20
2 2020-02-21
3 2020-02-22
4 2020-02-24
5 2020-02-25
6 2020-02-26
7 2020-02-27
8 2020-02-28
9 2020-02-29
I want to create a summary table which covers a start and end date for each non-breaking date range. The desired output is looking so ;
start end
<date> <date>
1 2020-02-20 2020-02-22
2 2020-02-24 2020-02-29
data.table solutions are also welcome.
Thanks in advance.