Interpolate time series with error handling
Source:R/10-data-processing.R
interpolate_time_series.RdInterpolate time series with error handling
Usage
interpolate_time_series(
data,
value_columns,
target_days,
method = "linear",
fill_na_method = "extend",
validate_input = TRUE
)Arguments
- data
Data frame with Day column and value columns
- value_columns
Vector with names of columns to interpolate
- target_days
Vector of target days
- method
Interpolation method ("linear", "constant", "spline")
- fill_na_method
Method to fill missing values ("extend", "zero", "mean")
- validate_input
Validate input structure, default TRUE