% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gapfill.R
\name{build_taxon_profiles}
\alias{build_taxon_profiles}
\title{Build per-taxon mean depth profiles for predicted-taxon gap-fill}
\usage{
build_taxon_profiles(pedons, ref_field = "reference_sibcs", attrs = NULL)
}
\arguments{
\item{pedons}{A list of \code{\link{PedonRecord}} with a reference label.}

\item{ref_field}{Site field holding the reference label (default
\code{"reference_sibcs"}; e.g. \code{"reference_usda"} / \code{"reference_wrb"}).}

\item{attrs}{Attributes to profile (default the continuous gap-fill set).}
}
\value{
A named list \code{taxon -> attr -> numeric(6)} (NA where a taxon has
        no measured value in a slice).
}
\description{
For each taxon (the first word of the reference label at the requested level),
averages each attribute across the calibration pedons into the six standard
depth slices (0-5 ... 100-200 cm). The result feeds
\code{\link{gapfill_by_predicted_taxon}}. Calibrate on a set DISJOINT from the
pedons you will fill (e.g. a train split) to keep the fill non-circular.
}
\seealso{
\code{\link{gapfill_by_predicted_taxon}}
}
