sanitize_date_range: Create a date range from a list of dates

View source: R/text_formatting.R

sanitize_date_rangeR Documentation

Create a date range from a list of dates

Description

Create a date range from a list of dates.

Usage

sanitize_date_range(dates)

Arguments

dates

A list or vector of dates.

Details

Take an arbitrary list of dates and create a date range from the first to the last.

Value

A named list with start and stop elements.

Examples

sanitize_date_range(c(as.Date("2021-02-20"), as.Date("2021-03-15"),
                      as.Date("2019-12-15"), as.Date("2020-07-14")))


jonathan-g/semestr documentation built on Jan. 23, 2025, 3:10 p.m.