The submission templates do not have date validations stored in the Excel files, so there can be a number of date types submitted that we attempt to account for outside of the normal, ISO format of YYYY-MM-DD. This function handles each identfied date type as a separate dataframe and then binds them back together. Date formats include - Excel, ISO, character dates. If the round_hfrdate param is TRUE, the function rounds to the start of the week or month and aggregates any mid-week/month submission.

hfr_fix_date(df, round_hfrdate = FALSE)

Arguments

df

HFR data frame imported via hfr_import()

round_hfrdate

rounds date to the nearest HFRweek start (for non-compliance), default = FALSE