Skip to contents

Calculate the initial amount of substance per ion (Eq/kg).

Usage

fun_salt_mileq(salt_ppm, dry_g, water_ml, mol_wts, salt_charges_z)

Arguments

salt_ppm

Ion concentration in ppm

dry_g

Sample weight in grams

water_ml

Amount of water in millilitres

mol_wts

Molecular weight

salt_charges_z

Salt charge, z

Value

Numeric milliequivalents per kilogram (mEq/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