
Fill missing horizon attributes from the predicted taxon's mean profile
Source:R/gapfill.R
gapfill_by_predicted_taxon.RdClassifies pedon with NO fill to get a provisional taxon, then fills
its missing cells from taxon_profiles[[<that taxon>]] (built by
build_taxon_profiles). Non-circular: the fill is keyed on the
model's own prediction, not the reference. Each fill is written with
source = "inferred_prior" (grade C). Reachable via
gapfill = list(method = "taxon", taxon_profiles = <...>).
Usage
gapfill_by_predicted_taxon(
pedon,
taxon_profiles,
system = c("sibcs", "wrb2022", "usda"),
attrs = NULL,
confidence = 0.55
)Arguments
- pedon
A
PedonRecord.- taxon_profiles
Output of
build_taxon_profiles.- system
One of
"sibcs"(default),"wrb2022","usda".- attrs
Attributes to fill (default: those present in the matched profile).
- confidence
Provenance confidence (default 0.55, below a coordinate prior).