ValidateValueDomain: A helper function for validating data within a pre-defined...

ValidateValueDomainR Documentation

A helper function for validating data within a pre-defined set of possible values.

Description

A helper function for validating data within a pre-defined set of possible values.

Usage

ValidateValueDomain(
  values,
  domain,
  error.message = "The following values are invalid:\n\n%s\n\n"
)

Arguments

values

The data that is to be validated

domain

The set of valid values that "values" can take on.

error.message

A template of a printf message for invalid values.


PSC-CoTC/AnnualReport documentation built on March 26, 2022, 9:33 a.m.