Learn R Programming

soilassessment (version 0.3.0)

ME_PHharm: Mixed-effects model for harmonizing soil pH (KCl or CaCl2) to the equivalent pH (water)

Description

A function for harmonizing soil pH (KCl or CaCl2) to the equivalent pH (water) using mixed effects approach

Usage

ME_PHharm(ph, TEXCLASS, model, phtype)

Value

numeric value of equivalent ph (water)

Arguments

ph

a vector or single value of soil ph in KCl or CaCl2 to be harmonized

TEXCLASS

soil textural class of the soil whose ph is to be harmonized. String or test entry of USDA textural classes: Cl, ClLo, Lo,LoSa,Sa,SaCl,SaClLo,SaLo,SiCl,SiClLo,SiLo,Si,CS,MS,HCL,FS. The classes can be determined from Clay, Silt, and Sand proportions using createTexturedata function

model

functional model for relating ph in KCl or CaCl to be harmonized and equivalent ph (water). Models considered are second order polynomial, sigmoid, spherical, gaussian, exponential, power, and linear functions. The default is polynomial

phtype

KCl or CaCl2 solution for ph. The default is CaCl2

Author

Christian Thine Omuto

Details

ph harmonization models, which were developed using global datasets, are designed to standardize soil ph for applications in soil salt classification

See Also

ME_ECharm, ECconversion1, ECconversion2

Examples

Run this code
newdata=data.frame(ph=c(1.6,8.3,5.7,12.1,2.2),tex=c("Cl","SaCl","LoSa", "Si","SaClLo"))
newdata$pH2=ME_PHharm(newdata$ph,newdata$tex,"exponential","kcl")

Run the code above in your browser using DataLab