calculating time periods between specific data entries
The following data is given and sorted by id and date. I would like to find out how many days lie between data entries of class A and of B within an id creating a new variable called ‘days_diff’. The goal is to be able to calculate if the difference in days exceeds a predefined… Read More calculating time periods between specific data entries