Learn R Programming

cbcTools (version 0.7.1)

validate_or_reconstruct: User-friendly wrapper to validate design with error messages

Description

User-friendly wrapper to validate design with error messages

Usage

validate_or_reconstruct(
  data,
  require_class = FALSE,
  allow_choices = TRUE,
  context = "this function"
)

Value

Validated/reconstructed data, or stops with error

Arguments

data

Input data

require_class

Whether to require proper class

allow_choices

Whether to allow cbc_choices objects

context

Character describing where this is being called from (for error messages)