Resample a numeric data frame (where the first column represents time) to the specified sample rate
Source:R/resample.R
resample.Rd
This function resamples a numeric data frame to the specified sample rate using interpolation.
Arguments
- 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.