Skip to contents

Performs various data validation steps to ensure there are no errors in the supplied data.

Usage

validate_rfrnds(
  data,
  check_applicability_constraint = TRUE,
  check_id_sudd_prefix = TRUE
)

Arguments

data

Referendum data to validate, as returned by rfrnds().

check_applicability_constraint

Whether or not to check that no applicability constraints as defined in the codebook are violated.

check_id_sudd_prefix

Whether or not to check that all id_sudd prefixes are valid.

Value

data, invisibly.

See also