Uses interpolated values to attempt to fill in missing data being aware of maximum gap lengths to fill and duplicates.
Arguments
- data_fill
data.framebased onproj$datawith missingdatetimevalues added fromprep_interp().- data_interp
data.framebased onproj$datawith duplicates condensed to a single value and missing values interpolated fromrun_interp().- y_var
Variable being interpolated.
- max_length
The maximum length in hours to fill via interpolation.
- date_range
The date range in which to fill data, used to only fill data within plotted range.
Examples
interp_dfs <- prep_interp(example_sondeproj)
filled_yvar <- run_interp(interp_dfs$interp, "fDOM_QSU", "linear")
data_filled <- apply_interp(interp_dfs$fill, filled_yvar,
"fDOM_QSU", 8, range(interp_dfs$fill$Date))
