ts_interpolate: Interpolation of a time series with missing values

View source: R/timeseries.R

ts_interpolateR Documentation

Interpolation of a time series with missing values

Description

Interpolation of a time series with missing values

Usage

ts_interpolate(s, method = c("airline", "average"))

Arguments

s

time series with missing values

method

airline: interpolation through an estimated airline model (Default) average: interpolation using the average of the previous and next non missing values

Value

The interpolated series

Examples


y<- rjd3toolkit::ABS$X0.2.09.10.M
y[400:410]<-NA
y1<-ts_interpolate(y)
y1[390:420]


rjd3toolkit documentation built on Sept. 21, 2026, 5:06 p.m.