na.interp {forecast}R Documentation

Interpolate missing values in a time series

Description

Uses linear interpolation to replace missing values.

Usage

na.interp(x)

Arguments

x

time series

Details

A more general and flexible approach is available using na.approx in the zoo package.

Value

Time series

Author(s)

Rob J Hyndman

Examples

data(gold)
plot(na.interp(gold))

[Package forecast version 3.24 Index]