Skip to contents

High-level classification entry point. Pre-computes the implemented diagnostic horizons (argic, ferralic, mollic) for transparent reporting, runs the key, and assembles a ClassificationResult with the trace, ambiguities, missing-data hints, evidence grade, and (in future) prior sanity check.

Usage

classify_wrb2022(
  pedon,
  prior = NULL,
  prior_threshold = 0.01,
  on_missing = c("warn", "silent", "error"),
  rules = NULL
)

Arguments

pedon

A PedonRecord.

prior

Optional spatial prior – a data.table with columns rsg_code and probability, typically the return value of spatial_prior. If supplied, the result records a prior_check entry from prior_consistency_check; an inconsistent prior also emits a warning. The deterministic key is NEVER overridden by the prior.

prior_threshold

Probability below which the prior triggers an "inconsistent" warning (default 0.01).

on_missing

One of "warn" (default), "silent", "error". Behaviour when the trace reports missing attributes.

rules

Optional pre-loaded rule set.