Validate that all observations have a matching modelled value, and vice-versa
validate_mod_obs_pairs.RdWhen 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.framewith numeric columns- dict$obsand- dict$mod.
- mode
- One of - "fix"(the default),- "error"or- "warn". If- "fix"the function will return a dataframe with any mismatched values set to- NA. 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()