Skip to contents

Walks the YAML qualifier list for a given RSG code and tests every principal / supplementary qualifier against the pedon. Returns the resolved canonical name pieces (principal + supplementary) plus a per-qualifier trace.

Usage

resolve_wrb_qualifiers(pedon, rsg_code, rules = NULL, specifiers = FALSE)

Arguments

pedon

A PedonRecord.

rsg_code

Two-letter RSG code (e.g. "FR" for Ferralsols).

rules

Optional pre-loaded rules list (saves I/O when many RSGs are tested).

specifiers

If TRUE, auto-attach WRB Ch 5 depth specifiers (Epi-/Endo-/Bathy-/Amphi-/Panto-/Kato-) to depth-anchored qualifiers based on the feature's actual depth. Default FALSE leaves names byte-identical to earlier versions.

Value

A list with principal (character vector), supplementary (character vector), trace, and trace_supplementary.