Skip to contents

Validate a data frame against the canonical CPADS analysis contract.

Usage

morie_cpads_validate_frame(frame, strict = TRUE)

Arguments

frame

A data.frame (or tibble).

strict

Logical; if TRUE (default), raise an error when any required variable is missing. If FALSE, return the missing names without raising.

Value

Character vector of missing canonical variable names (invisibly when strict and complete).

Examples

if (FALSE) { # \dontrun{
morie_cpads_validate_frame(df, strict = TRUE)
} # }