Skip to contents

Checks whether a data frame conforms to the structural requirements of a Betwixt candidate dataset.

Usage

validate_candidate_dataset(x)

Arguments

x

A data frame representing a Betwixt candidate dataset.

Value

Invisibly returns x if validation succeeds. Otherwise, an error describes the first validation failure.

Details

Candidate datasets can be created in a spreadsheet application after initialising a conforming header with create_candidate_template(). Re-imported datasets can be checked with validate_candidate_dataset() before rendering with render_review().

Examples

x <- create_candidate_template()
validate_candidate_dataset(x)