err_tdy_break_min_max_date: Check and tidy minimum and maximum dates

Description Usage Arguments See Also Examples

View source: R/err_tdy.R

Description

Check and tidy minimum and maximum dates

Usage

1
err_tdy_break_min_max_date(break_min, break_max, unit, null_ok, equal_ok)

Arguments

break_min

Date or NULL. If non-NULL, lowest permissible value for date.

break_max

Date or NULL. If non-NULL, highest permissible value for date.

unit

A time unit.

null_ok

Whether break_min and break_max can be NULL

equal_ok

Whether break_min and break_max can be NULL.

See Also

err_tdy_break_min_max_integer

Examples

1
2
3
4
5
err_tdy_break_min_max_date(break_min = as.Date("2000-01-01"),
                           break_max = as.Date("2080-01-01"),
                           unit = "year",
                           null_ok = FALSE,
                           equal_ok = FALSE)

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.