Transform data from long format to period format
long_to_periods(data, .id, .start, .stop = NULL, .by = NULL)
a data.frame
a character, column containing individual ids
a character, column containing time variable indicating the beginning of each row
a character, column containing time variable indicating the end of each row. If not provided, it will be derived from the dataset, considering that each row ends at the beginning of the next one.
a character vector, co-variables to consider (optionnal)