This function calculates an aggregate stability index given the CEC and its occupation with major cations.

calc_aggregatestability(
  B_SOILTYPE_AGR,
  A_SOM_LOI,
  A_K_CO_PO,
  A_CA_CO_PO,
  A_MG_CO_PO
)

Arguments

B_SOILTYPE_AGR

(character) The type of soil

A_SOM_LOI

(numeric) The organic matter content of soil in percentage

A_K_CO_PO

(numeric) The occupation of the CEC with K (%)

A_CA_CO_PO

(numeric) The occupation of the CEC with Ca (%)

A_MG_CO_PO

(numeric) The occupation of the CEC with Mg (%)

Value

The aggregate stability index of a soil given the Cation Exchange Capacity and its composition with major cations. A numeric value.

Examples

calc_aggregatestability(B_SOILTYPE_AGR = 'dekzand', A_SOM_LOI = 3.5, 
A_K_CO_PO = 6,A_CA_CO_PO = 83 ,A_MG_CO_PO = 9)
#> [1] 0.03224903
calc_aggregatestability(B_SOILTYPE_AGR = c('dekzand','rivierklei'), A_SOM_LOI = c(3.5,6.5), 
A_K_CO_PO = c(6,9),A_CA_CO_PO = c(83,75) ,A_MG_CO_PO = c(9,4))
#> [1] 0.03224903 0.09674709