I have a problem with regard to inputing missing observations in a data frame with R, below is an snapshot of the data frame:
Sample of the data frame
I actually have 66 different districts, 21 days and each day and each district should have 144 time periods. The current dataset I have is with missing observations, e.g for district 5 at day 6, the observation values for time period 132 is missing.
What I am trying to achieve is to include the missing observations into the original data frame to make it complete, but for values of y1 and y2, I can just set them to null. How can I achieve this with R?