hfr_fix_date: Convert dates to date format

View source: R/hfr_fix_date.R

hfr_fix_dateR Documentation

Convert dates to date format

Description

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.

Usage

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


USAID-OHA-SI/Wavelength documentation built on March 24, 2023, 10:07 a.m.