Learn R Programming

tableschema.r (version 1.1.2)

constraints.checkRequired: 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)

Value

TRUE if field is required

Arguments

constraint

set TRUE to check required values

value

value to check

See Also

Examples

Run this code

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

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

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

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

Run the code above in your browser using DataLab