any_problems: Detect problems with the parsing of date/times

View source: R/dtc_problems.R

any_problemsR Documentation

Detect problems with the parsing of date/times

Description

any_problems() takes a list of capture matrices (see parse_dttm()) and reports on parsing problems by means of predicate values. A FALSE value indicates that the parsing was successful and a TRUE value a parsing failure in at least one of the inputs to create_iso8601(). Note that this is an internal function to be used in the context of create_iso8601() source code and hence each capture matrix corresponds to one input to create_iso8601().

Usage

any_problems(cap_matrices, .cutoff_2000 = 68L)

Arguments

cap_matrices

A list of capture matrices in the sense of the returned value by parse_dttm().

.cutoff_2000

An integer value. Two-digit years smaller or equal to .cutoff_2000 are parsed as though starting with 20, otherwise parsed as though starting with 19.

Value

A logical whose length matches the number of underlying date/times passed as inputs to create_iso8601(), i.e. whose length matches the number of rows of the capture matrices in cap_matrices.


sdtm.oak documentation built on April 3, 2025, 9:37 p.m.