I am having problems developing a code to recognize gaps in time series for each combination of columns and to fill those gaps . the structure of my data frame is as below