which_PTF: Query which PTF can be used.

Description Usage Arguments Details Value Author(s) Examples

View source: R/which_PTF.R

Description

If in doubt which pedotransfer function to use, apply this function. It returns a suggested PTF based on the available (that is provided) predictor variables and optionally a specified target variable. This is conditional to the provided set of predictor variables such as PSD and DEPTH

Usage

1
which_PTF(predictor, target = NULL)

Arguments

predictor

A vector of n strings specifying the available predictor variables. Alternatively, a data.table or data.frame with named columns.

target

A vector of m elements with target variables to be predicted.

Details

The following columns in the predictor argument can be present, the first 4 are required for the code to work. The names are case sensitive. USSAND, USSILT, USCLAY, DEPTH_M, OC, BD, CACO3, PH_H2O, CEC

Value

A vector of length m, with suggested PTF to use.

Author(s)

Tobias KD Weber, tobias.weber@uni-hohenheim.de

Brigitta Szabo, toth.brigitta@atk.hu

Examples

1
## Not run: use_these <- which_PTF(predictor = c("USSAND", "USSILT","USCLAY" , "DEPTH_M"), target = c("THS", "VG"))

tkdweber/euptf2 documentation built on Jan. 19, 2021, 4:20 p.m.