
Field-level semantic fidelity report
Source:R/048-semantic-validation-0-7.R
field_fidelity_report.RdClassifies canonical fields after a semantic round trip. Character fields are compared exactly after NA preservation; numeric fields are compared directly and also tested for a stable affine transform.
Usage
field_fidelity_report(
source,
roundtrip,
fields = NULL,
mapping = NULL,
key = NULL,
tolerance = 1e-08,
spec = semantic_fidelity_spec()
)Arguments
- source
Original canonical data.
- roundtrip
Canonical data reconstructed after an interchange round trip.
- fields
Fields to compare. Defaults to common fields.
- mapping
Optional named character vector mapping source field names to round-trip field names.
- key
Optional unique row-alignment fields.
- tolerance
Numeric equality tolerance.
- spec
A `semantic_fidelity_spec()` object.