How to create variables in a dataframe as there are days between two dates?
In a data.frame, I would like to create as many variables as there are days between two dates. Here’s my example below. Many thanks in advance ! mydf <- data.frame( ident = c("a","b","c"), start = c("2023-01-01","2023-01-06","2023-01-24"), end = c("2023-01-03","2023-01-12","2023-01-30") ) ident start end 1 a 2023-01-01 2023-01-03 2 b 2023-01-06 2023-01-12 3 c 2023-01-24 2023-01-30… Read More How to create variables in a dataframe as there are days between two dates?