Skip to contents

This function completes the soilphys dataset by calculating different parameters if necessary, as long as all required parameters are available. Diffusion coefficients, as well as the air density are calculated if missing.

Usage

complete_soilphys(
  soilphys,
  DSD0_formula = NULL,
  gases = NULL,
  overwrite = TRUE,
  quiet = FALSE
)

Arguments

soilphys

(dataframe) the soilphys dataframe

DSD0_formula

(character) A character vector defining the way DSD0 should be calculated. Must refer to existing columns in soilphys. See examples below.

gases

(character) A character vector defining the gases for which to calculate D0 and DS.

overwrite

(logical) If true, already existing columns are overwritten.

quiet

(logical) Suppress messages.

See also

D0_massman

Other soilphys: check_soilphys(), discretize_depth(), soilphys_layered()

Examples

soilphys <- complete_soilphys(soilphys, DSD0_formula = "a*AFPS^b")
#> The following columns were overwritten: AFPS DSD0 D0 DS c_air