interpolate | R Documentation |
Univariate interpolation of gappy time series.
interpolate(z, gap, maxit = 20, progress = FALSE, sigClip = 0.999, delT = 1)
z |
time series with gaps, denoted by |
gap |
indexes of missing values, from |
maxit |
maximum number of iterations for convergence in interpolation. |
progress |
logical: should progress be written to screen as iterations proceed? |
sigClip |
probabilistic significance for choice of line components, dividing series
into “signal” and “noise” (see algorithm for more). Suggested that this be kept
above |
delT |
the time step delta-t in seconds. |
returns a list of the interpolated timeseries
library("tsinterp")
data("flux")
z1 <- flux$SagOrig
z1[which(flux$S == FALSE)] <- NA
interpolate(z, gap, maxit = 20, progress=FALSE, sigClip=0.999, delT=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.