Run pointblank validation on a Samples table
Source:R/fct_validate_pointblank.R
pb_validate_samples.RdApplies pointblank validation rules to check data quality and schema
compliance for an eData Samples table. Checks that core identifier fields
are non-null, that environmental compartment fields contain values within
their controlled vocabularies, and that each ENVIRON_COMPARTMENT_SUB value
is consistent with its corresponding ENVIRON_COMPARTMENT parent.
Value
If agent = TRUE, a pointblank agent object containing validation results.
If agent = FALSE, the input data with validation failures removed.
Details
Validation thresholds are configured using pointblank::action_levels().
See also
pb_validate_edata_table() for the underlying validation framework,
pb_validate_all_edata_tables() to validate all tables at once,
environ_compartments_sub_vocabulary() for the compartment hierarchy used in
the consistency check,
example_samples_tibble() for an example Samples table.
Other validation:
pb_validate_CREED_data_relevance(),
pb_validate_CREED_data_reliability(),
pb_validate_CREED_scores(),
pb_validate_all_edata_tables(),
pb_validate_biota(),
pb_validate_campaign(),
pb_validate_edata_table(),
pb_validate_measurements(),
pb_validate_methods(),
pb_validate_parameters(),
pb_validate_reference(),
pb_validate_sites()
Examples
if (FALSE) { # \dontrun{
pb_validate_samples(example_samples_tibble())
} # }