我有一个缺少日期(不缺少值)的气候时间序列。例如:
n = 15
full.dates = seq(Sys.Date(), by = 'day', length = n)
serie.dates = full.dates[c(1:10, 12, 15)] # missing 11, 13, 14
y = rnorm(n)
require(zoo)
serie = zoo(y, serie.dates)
给定“full.dates”向量,我如何“填充”(使用插值)这些缺失点?谢谢!