resample | R Documentation |
This function resamples a numeric data frame to the specified sample rate using interpolation.
resample(data, sample_rate_output = 100, method = "cubic")
data |
A numeric data frame where each column is a time series to be resampled. The first column should be a time vector. |
sample_rate_output |
Integer, the desired sample rate (Hz) of the output signal. Default is 100Hz. |
method |
Character, the interpolation method to use. Default is "cubic". Options include "linear", "nearest", "spline", "pchip", etc. |
A data frame with the same number of columns as 'data', but with each column resampled to the specified sample rate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.