complete_soilphys: (Re-)calculate soil physical parameters

View source: R/complete_soilphys.R

complete_soilphysR Documentation

(Re-)calculate soil physical parameters

Description

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")



valentingar/ConFluxPro documentation built on Dec. 1, 2024, 9:35 p.m.