check_constraint.Rd
Deprecated: these checks are now done as part of the weight() and/or extract()/integerise() steps automatically
check_constraint(constraint_var, num_zones)
constraint_var | The constraint table to check, usually a data frame |
---|---|
num_zones | The number of zones that should be present in the table |
If no errors are detected the function returns silently. Any errors will stop the function or script to be investigated.
Checks a constraint table for the following common errors:
Ensures all zone codes are unique
Ensures there are the expected number of zones
Ensures all but the zone column are numeric (integer or double)
## Not run ## check_constraint() is deprecated. These checks are automatically ## carried out as part of the weight() and/or extract()/integerise() ## functions