3
I have a time series with 30 years of data that presents filling failures. As noted in the example below, a few days were not recorded (1961-08-19,1961-08-20,1961-08-21...). How do I identify and insert the missing dates in the "date" column, assigning "NA" to the other columns on those dates when no monitoring was performed?
date id prec tmax tmin tmed urmax
1961-08-18 1 NA 23.53 14.90 27.90 36.33
1961-08-22 1 0.00 24.80 14.90 29.70 31.67
1961-08-24 1 1.00 24.37 15.30 28.80 37.33
1961-08-25 1 0.00 23.93 16.03 29.20 43.67
1961-08-26 1 0.00 25.97 15.27 31.60 30.33
1961-08-27 1 0.00 25.83 14.97 31.20 29.33
1961-08-29 1 0.00 24.60 15.87 30.20 39.33
1961-08-30 1 0.00 25.60 15.83 29.80 34.00