
ClassificationResult: structured outcome of running a key
Source:R/class-ClassificationResult.R
ClassificationResult.RdClassificationResult: structured outcome of running a key
ClassificationResult: structured outcome of running a key
Details
Returned by classify_wrb2022 (and the future
classify_sibcs). Carries the full decision trace — which RSGs
were tested, which passed, which failed, which were indeterminate
because of missing data — plus the assigned class, qualifiers,
ambiguities (RSGs that nearly satisfied), missing data that would
refine the result, the provenance-aware evidence grade, and any
biogeographical or prior-based warnings.
Public fields
systemCharacter.
"WRB 2022"or"SiBCS 5".nameCharacter. Full classification name with qualifiers (e.g.
"Rhodic Ferralsol (Clayic, Humic, Dystric)").rsg_or_orderCharacter. Bare RSG (WRB) or order (SiBCS), e.g.
"Ferralsols".qualifiersList. Principal and supplementary qualifiers in canonical order.
traceList. One element per RSG tested (in key order), each with
code,name,passed,evidence,missing.ambiguitiesList. RSGs that came close to passing — useful hints for follow-up measurements.
missing_dataCharacter vector. Attributes whose measurement would refine or resolve the result.
evidence_gradeCharacter.
"A","B","C","D", orNA_character_.prior_checkList or NULL. Result of the spatial-prior sanity check (consistent / inconsistent / not run).
warningsCharacter vector. Free-form warnings.
Methods
Method new()
Build a ClassificationResult.
Arguments
systemSystem name.
nameClassification name.
rsg_or_orderRSG (WRB) or order (SiBCS).
qualifiersList of qualifier names.
traceList of per-RSG test entries.
ambiguitiesList of close-call RSGs.
missing_dataCharacter vector.
evidence_gradeSingle character A/B/C/D or NA.
prior_checkList or NULL.
warningsCharacter vector.
Method print()
Pretty-print the result with key trace, ambiguities, and warnings.
Method summary()
Compact summary list.
Method report()
Render this classification as a self-contained
report (delegates to the package-level
report generic). HTML output is
dependency-free; PDF requires rmarkdown
and a working LaTeX engine.
Usage
ClassificationResult$report(
file,
format = c("auto", "html", "pdf"),
pedon = NULL,
...
)Arguments
fileOutput path. Format is inferred from the extension.
formatOne of "html" or "pdf" (defaults to "auto", which infers from the extension).
pedonOptional
PedonRecordwhose horizons / provenance are added to the report....Forwarded to
report_htmlorreport_pdf.