
DiagnosticResult: structured outcome of a diagnostic test
Source:R/class-DiagnosticResult.R
DiagnosticResult.RdDiagnosticResult: structured outcome of a diagnostic test
DiagnosticResult: structured outcome of a diagnostic test
Details
Returned by every WRB or SiBCS diagnostic function (e.g.
argic, ferralic, mollic). A
DiagnosticResult never reduces to a bare TRUE/FALSE — it always carries
(a) which layers satisfied the criteria, (b) the per-sub-test evidence,
(c) which attributes would have been required but are missing, and
(d) the literature reference for the diagnostic definition.
passed is TRUE/FALSE/NA; NA means the
test could not be evaluated because critical attributes were missing.
This three-valued semantics propagates through the rule engine — an
indeterminate test does not silently fail.
Public fields
nameCharacter. Name of the diagnostic (e.g.
"argic").passedLogical.
TRUE,FALSE, orNA.layersInteger vector. Indices of horizons that satisfy the diagnostic.
evidenceNamed list. Sub-test results, each itself a list with at least
passed,layers, andmissing.missingCharacter vector. Attribute names that would have been needed but were NA.
referenceCharacter. Literature citation for this diagnostic.
notesCharacter. Free-form notes (interpretation choices, edge cases hit).
Methods
Method new()
Build a DiagnosticResult.
Usage
DiagnosticResult$new(
name,
passed = NA,
layers = integer(0),
evidence = list(),
missing = character(0),
reference = NA_character_,
notes = NA_character_
)Method print()
Pretty-print the result with sub-test breakdown.