Skip to contents

Get the start day of an epiweek according to different epiweek standards. Returns it as a string that can be passed to lubridate::wday() as the week_start argument.

Usage

get_epiweek_start(epiweek_standard)

Arguments

epiweek_standard

One of "USA" (USA epiweek, starts on Sunday) and "ISO" (ISO week, starts on Monday). Not case-sensitive.

Value

the start day of the week for the epiweek standard, as a three letter abbreviation ('Sun' or 'Mon') that can be passed to lubridate::wday() as the week_start argument. export