resample | R Documentation |
Resample single- or multi-variate time series using linear or nearest neighbour interpolation
resample(raw, rawTime, time, stop, type = 1)
raw |
stop-by-3 matrix with raw values of x, y and z. |
rawTime |
vector with stop elements of raw time. |
time |
array with required time points. |
stop |
Number of rows in raw |
type |
integer to indicate type of interpolation, 1=linear, 2=nearest neighbour |
raw = cbind(1:10, 1:10, 1:10)
rawTime = seq(0.1, 1, by = 0.1)
time = seq(0.15001, 1.05001, by = 0.1)
stop = 10
dat_lin = resample(raw, rawTime, time, stop, type = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.