constraints.checkRequired {tableschema.r} | R 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
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")
[Package tableschema.r version 1.1.2 Index]