interpol {ptw} | R Documentation |
This function calculates values at non-integer index positions by linear interpolation.
interpol(xout, y)
xout |
points at which to compute interpolated values |
y |
signal to be interpolated |
A vector of interpolated values. If any of the values of
xout
are outside the domain 1:length(y)
the output will
contain NA at those positions
Paul Eilers, Jan Gerretzen, Ron Wehrens
interpol(seq(23, 25, length = 20),10:50) interpol(seq(23, 25, length = 20),5:50)