powered by
Function to handle negative entries when assessing salt-affected soils
negData(vg,x)
numeric value of soil property to correct. It return NA where negative "ec" or "esp" is involved or where ph<1 or ph>14
tag for soil property. Default is "ec"
numeric value of soil property to check
Christian Thine Omuto
Three tags for soil properties are allowed: "ec", "ph", "esp"
negData("ph",14)
Run the code above in your browser using DataLab