regularise | R Documentation |
This is a wrapper for the function stats::spline, which is applied to each variable to interpolate.
regularise(data, new_interval, var_names)
data |
Data frame with columns for ID (time series ID), time, and variables to interpolate |
new_interval |
Time interval of interpolation, in the syntax expected by 'seq'. For example, '5 sec', '1 min', '2 hour', etc. |
var_names |
Vector of names of variables to interpolate @return Data frame with columns for ID, time, and interpolated variables |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.