check_date_range: Check Date Range

View source: R/check_helpers.R

check_date_rangeR Documentation

Check Date Range

Description

Checks if the provided date range is valid. It ensures that the date range contains exactly two valid dates and that the starting date is before the ending date. It is used internally in the package to validate date ranges provided by the user.

Usage

check_date_range(date_range)

Arguments

date_range

a character vector of length 2 containing the start and end dates.


piavat/PRE2DUP-R documentation built on June 11, 2025, 11:42 a.m.