check_soilphys: Check for complete and correct soil physical parameters

View source: R/check_soilphys.R

check_soilphysR Documentation

Check for complete and correct soil physical parameters

Description

This function analyses the soilphys dataframe before the flux calculation. It presents a warning, if there are variables missing and also looks for suspicious patterns that suggest an error in the interpolation made by discretize_depth. Mainly checks if certain columns are present and if they are missing, if they can be calculated from the data present. Looks for the following columns by default: "upper","lower","TPS","SWC","AFPS","t","p","DSD0","D0","DS"

Usage

check_soilphys(df, extra_vars = c(), id_cols)

Arguments

df

(dataframe) the soilphys dataframe

extra_vars

(character vector) column names of additional variables to be checked.

id_cols

(character vector) the columns that, together, identify a site uniquely (e.g. site, repetition)

Value

data frame of 'suspicious' parameter/depth combinations, where all values are NA.

See Also

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

Examples

{
data("soilphys")
check_soilphys(soilphys,id_cols = c("site"))
}


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