preproc_validate_daily {HyMETT} | R Documentation |
Validates that daily data do not contain gaps
Description
Validates that daily data do not contain gaps
Usage
preproc_validate_daily(
data = NULL,
Date = "Date",
value = "value",
date_format = "%Y-%m-%d"
)
Arguments
data |
'data.frame'. Optional data.frame input, with columns containing |
Date |
'Date' or 'character' vector when |
value |
'numeric' vector when |
date_format |
'character' string. Format of |
Details
Used to validate there are no gaps in the daily record before computing n-day moving averages in
preproc_precondition_data
or lag-1 autocorrelation in POR_calc_AR1
. If gaps are present,
preproc_fill_daily
can be used to fill them with NA
values.
Value
An error message with missing dates, otherwise nothing.
Examples
preproc_validate_daily(data = example_obs, Date = "Date", value = "streamflow_cfs")