err_tdy_date_scalar: Check and tidy a date scalar or vector

Description Usage Arguments Examples

View source: R/err_tdy.R

Description

Check and tidy a date scalar or vector

Usage

1
2
3

Arguments

x

A scalar or vector of class Date, or something that can be coerced to one.

name

The name for x that will be used in error messages.

Examples

1
2
3
4
x <- "2001-03-01"
err_tdy_date_scalar(x, name = "x")
x <- c("2000-05-01", "2000-06-01", "2000-07-01")
err_tdy_date_vector(x, name = "x")

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