assert_capture_matrix {sdtm.oak}R Documentation

Assert capture matrix

Description

assert_capture_matrix() is an internal helper function aiding with the checking of an internal R object that contains the parsing results as returned by parse_dttm(): capture matrix.

This function checks that the capture matrix is a matrix and that it contains six columns: year, mon, mday, hour, min and sec.

Usage

assert_capture_matrix(m)

Arguments

m

A character matrix.

Value

This function throws an error if m is not either:

Otherwise, it returns m invisibly.


[Package sdtm.oak version 0.1.0 Index]