assertDate: Assert Date

View source: R/assert.R

assertDateR Documentation

Assert Date

Description

Assert Date

Usage

assertDate(
  x,
  length = NULL,
  na = FALSE,
  null = FALSE,
  unique = FALSE,
  named = FALSE,
  call = parent.frame(),
  msg = NULL
)

Arguments

x

Expression to check.

length

Required length.

na

Whether it can contain NA values.

null

Whether it can be NULL.

unique

Whether it has to contain unique elements.

named

Whether it has to be named.

call

Call argument that will be passed to cli error message.

msg

Custom error message.

Value

x


omopgenerics documentation built on Sept. 30, 2024, 9:16 a.m.