negData: Correcting negative entries in classes for intenisty of...

View source: R/negData.R

negDataR Documentation

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)

Arguments

vg

tag for soil property. Default is "ec"

x

numeric value of soil property to check

Details

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

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

Author(s)

Christian Thine Omuto

Examples

negData("ph",14)

soilassessment documentation built on July 9, 2023, 7:40 p.m.