Learn R Programming

soilassessment (version 0.3.0)

negData: Correcting negative entries in classes for intenisty of salt-affected soils

Description

Function to handle negative entries when assessing salt-affected soils

Usage

negData(vg,x)

Value

numeric value of soil property to correct. It return NA where negative "ec" or "esp" is involved or where ph<1 or ph>14

Arguments

vg

tag for soil property. Default is "ec"

x

numeric value of soil property to check

Author

Christian Thine Omuto

Details

Three tags for soil properties are allowed: "ec", "ph", "esp"

Examples

Run this code
negData("ph",14)

Run the code above in your browser using DataLab