Calculate the initial amount of substance per ion (Eq/kg).
Details
Eqn 2. Equivalents per kilogram (e_i):
$$ e_i = \frac{C_{\mathrm{ppm}} \times V_{\mathrm{water}}} {m_{\mathrm{dry}} \times \left(\frac{M}{z}\right)} $$
where:
\(C_{\mathrm{ppm}}\) = ion concentration in ppm
\(V_{\mathrm{water}}\) = water volume (mL)
\(m_{\mathrm{dry}}\) = sample dry mass (g)
\(M\) = molecular weight
\(z\) = ionic charge
Examples
# Chloride test data with scalar inputs
fun_salt_mileq(66.824, 1.128, 100, 35.453, 1)
#> [1] 167.0977
# Vectorized usage with salt_test and mol_wts data frames/lists
fun_salt_mileq(
salt_test$chloride_ppm,
salt_test$dry_g,
salt_test$water_ml,
mol_wts$chloride,
salt_charges_z$chloride
)
#> [1] 167.0977
