regularise: Interpolate time series to regular time intervals

View source: R/regularise.R

regulariseR Documentation

Interpolate time series to regular time intervals

Description

This is a wrapper for the function stats::spline, which is applied to each variable to interpolate.

Usage

regularise(data, new_interval, var_names)

Arguments

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


TheoMichelot/utilTM documentation built on April 14, 2025, 12:52 p.m.