Description Usage Arguments Details Value Author(s) Examples
View source: R/ConvenienceFunctions.R
Interpolate, subsample and fill gaps in time series by linear interpolation
Subsample and interpolate oversampled or undersampled time series to obtain equidistant data at a lower or higher sampling frequency. Gaps are filled with linear interpolation
1 2 3 4 5 6 |
x |
Data frame with time in first column and time series data in second. |
dt |
Sampling interval. Default to time difference of first two observations |
units |
Optional: units of |
type |
Type of interpolation. Only linear interpolation implemented |
Subsampling, interpolating and gapfilling
An equidistant times series with sampling interval dt
is created by linear interpolation. gapfill
takes the time interval between the first and second observation as default value for dt
. subsample
and resample
require a value of dt
.
A data frame with time and interpolated time series.
Tom Cox <tom.cox@uantwerp.be>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.