https://github.com/cran/forecast
Revision 5bfb4ca8e591785a2372cdaff26202d6aa4999fb authored by Rob J Hyndman on 27 November 2012, 00:00:00 UTC, committed by Gabor Csardi on 27 November 2012, 00:00:00 UTC
1 parent 18f257f
Raw File
Tip revision: 5bfb4ca8e591785a2372cdaff26202d6aa4999fb authored by Rob J Hyndman on 27 November 2012, 00:00:00 UTC
version 4.00
Tip revision: 5bfb4ca
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