Interpolate a Continuous Function of Time interpolate() creates a function of time from a time-indexed input object. It powers functionalize(). This documentation is unfinished.

interpolate(.data, .x, .t = NULL, rtn_data = FALSE)

Arguments

.data

An input dataset with a column to interpolate

.x

The column to interpolate

.t

An optional column specifying times associated with .x

rtn_data

Whether to return the input data as an attribute; used internally, but not usually needed.

Value

A function with interpolated input .t and output .x