Check if a vector is valid given a field descriptor
dp_check_field(
x,
fielddescriptor,
constraints = TRUE,
tolerance = sqrt(.Machine$double.eps)
)Returns TRUE when the field is valid. Returns a character vector with
length >= 1 if the field is not valid. The text in the character values
indicates why the field is not valid.
vector to test
field descriptor to test the vector against
also check relevant constraints in the field descriptor.
numerical tolerance used in some of the tests
Use isTRUE to check if the test was successful.
See dp_check_dataresource for a function that checks a complete data set.