latest_weekday: Find the Latest Target Weekday

View source: R/utils.R

latest_weekdayR Documentation

Find the Latest Target Weekday

Description

Find the Latest Target Weekday

Usage

latest_weekday(date = Sys.Date(), day = 1, char = FALSE)

Arguments

date

A date, by default the current system date.

day

Numeric, defaults to 1 (Monday). Day of the week to find. See ?floor_date for documentation.

char

Logical, defaults to TRUE. Should the date be returned as a character string

Value

A date or character string identifying the latest target day of the week


epiforecasts/covid-german-forecasts documentation built on Jan. 4, 2024, 3:42 p.m.