% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-diagnostic-tests.R
\name{test_ecec_per_clay}
\alias{test_ecec_per_clay}
\title{Test effective CEC (sum of bases + Al) per kg clay <= threshold}
\usage{
test_ecec_per_clay(h, max_cmol_per_kg_clay = 12, candidate_layers = NULL)
}
\arguments{
\item{h}{Numeric threshold or option (see Details).}

\item{max_cmol_per_kg_clay}{Numeric threshold or option (see Details).}

\item{candidate_layers}{Numeric threshold or option (see Details).}
}
\description{
Default threshold is 12 cmol_c/kg clay (WRB 2022 ferralic horizon). If
\code{ecec_cmol} is missing, computes ECEC from \code{ca_cmol +
mg_cmol + k_cmol + na_cmol + al_cmol} when those are available.
}
