FillDailyGapsWithSomeValue
fills (literally) missing days with date+some value.
FillDailyGapsWithSomeValue(dataYearSeries,FromDate,ToDate, missingValue=-9999)
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
daylyCollegeville2<-FillDailyGapsWithSomeValue(dailyCollegeville,
'1916-06-01','2010-11-30', missingValue=NA)
str(dailyCollegeville)
str(daylyCollegeville2)
Run the code above in your browser using DataLab