Skip to contents

Checks the column contract and every invariant that still holds on any subset of rows. Properties that hold only of a complete object (an array carrying all its parts, numbered contiguously from 1) are checked by the functions that need them, such as alignment; see tales_assert_complete.

Usage

validate_tales(x)

Arguments

x

A tales object.

Value

x, invisibly, if valid; otherwise an error.

Examples

parts <- data.frame(
  array_id = c("A1", "A1"), position_in_array = c(1L, 2L),
  rvd = c("NTERM", "HD")
)
validate_tales(tales(parts))