Learn R Programming

sdtm.oak (version 0.1.0)

assert_dtc_format: Assert dtc format

Description

assert_dtc_format() is an internal helper function aiding with the checking of the .format parameter of create_iso8601().

Usage

assert_dtc_format(.format)

Value

This function throws an error if .format is not either:

  • A character vector of formats permitted by assert_dtc_fmt();

  • A list of character vectors of formats permitted by assert_dtc_fmt().

Otherwise, it returns .format invisibly.

Arguments

.format

The argument of create_iso8601()'s .format parameter.