Windows 10 R 4.0.4 R Studio 1.3.1093 I have a data.frame like this: Name ID CheckInDate CheckOutDate A 503 2020/10/1 2020/10/5 A 503 2020/10/7 2020/10/10 A 501 2020/10/3 202