Validate that all observations have a matching modelled value, and vice-versa
validate_mod_obs_pairs.Rd
When calculating statistics, it is important that the methodology is applied to observation-model pairs. This function can help identify and fix this situation.
Arguments
- data
A
data.frame
with numeric columnsdict$obs
anddict$mod
.- mode
One of
"fix"
(the default),"error"
or"warn"
. If"fix"
the function will return a dataframe with any mismatched values set toNA
. If"error"
or"warn"
, the the function will either error or warn if mismatched values are detected.- dict
See
mqo_dict()
for more information. Acts as a data dictionary to specify the columns in the data{mqor}
should use.
See also
Other data utilities:
filter_year()
,
mqo_percentile()
,
mutate_rolling_mean()
,
summarise_daily()