complete_soilphys {ConFluxPro} | R 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. |
Value
A data.frame()
with all necessary columns for
cfp_soilphys.
See Also
D0_massman
Other soilphys:
check_soilphys()
,
discretize_depth()
,
soilphys_layered()
Examples
soilphys_barebones <- ConFluxPro::soilphys |>
dplyr::select(
c("site",
"Date",
"upper",
"lower",
"depth",
"t",
"p",
"TPS",
"SWC",
"a",
"b")
)
complete_soilphys(
soilphys_barebones,
DSD0_formula = "a*AFPS^b",
gases = "CO2")
[Package ConFluxPro version 1.3.1 Index]