constraints.checkRequired: Check if a field is required

View source: R/constraints.checkRequired.R

constraints.checkRequiredR Documentation

Check if a field is required

Description

Indicates whether this field is allowed to be NULL. If required is TRUE, then NULL is disallowed. See the section on missingValues for how, in the physical representation of the data, strings can represent NULL values.

Usage

constraints.checkRequired(constraint, value)

Arguments

constraint

set TRUE to check required values

value

value to check

Value

TRUE if field is required

See Also

Constraints specifications

Examples


constraints.checkRequired(constraint = FALSE, value = 1)

constraints.checkRequired(constraint = TRUE, value = 0)

constraints.checkRequired(constraint = TRUE, value = NULL)

constraints.checkRequired(constraint = TRUE, value = "undefined")


tableschema.r documentation built on Sept. 30, 2022, 1:06 a.m.