last_tuesday: Find the most recent tuesday

View source: R/last_tuesday.R

last_tuesdayR Documentation

Find the most recent tuesday

Description

Identify the most recent 'TidyTuesday' date relative to a specified date.

Usage

last_tuesday(date = today(tzone = "America/New_York"))

Arguments

date

A date as a date object or character string in YYYY-MM-DD format. Defaults to today's date.

Value

The TidyTuesday date in the same week as the specified date, using Monday as the start of the week.

Examples

last_tuesday() # get last Tuesday relative to today's date
last_tuesday("2020-01-01") # get last Tuesday relative to a specified date


tidytuesdayR documentation built on Sept. 14, 2024, 9:08 a.m.