https://github.com/cran/forecast
Raw File
Tip revision: 38c61ae8e1e537e2968a5532e3e75a61987e1892 authored by Rob J Hyndman on 14 March 2013, 00:00:00 UTC
version 4.03
Tip revision: 38c61ae
na.interp.Rd
\name{na.interp}
\alias{na.interp}
\title{Interpolate missing values in a time series}
\usage{na.interp(x)}

\arguments{  
\item{x}{time series}
}
\description{Uses linear interpolation to replace missing values.}

\details{A more general and flexible approach is available using \code{na.approx} in the \code{zoo} package.}

\value{Time series}

\author{Rob J Hyndman}
\examples{
data(gold)
plot(na.interp(gold))
}
\keyword{ts}
back to top