Learn R Programming

aqp (version 0.99-8.1)

test_hz_logic: Test Horizon Logic

Description

Simple tests for horizon logic, based on a simple data.frame of ordered horizons.

Usage

test_hz_logic(i, topcol, bottomcol, test.NA = TRUE, strict = FALSE)

Arguments

i
a data.frame associated with a single soil profile, ordered by depth
topcol
character, giving the name of the column in i that describes horizon top depth
bottomcol
character, giving the name of the column in i that describes horizon bottom depth
test.NA
logicial, should tests for missing (NA) horizon top OR bottom boundaries be performed?
strict
logical, should continuity tests be performed-- i.e. for non-contiguous horizon boundaries

Value

  • logical: TRUE --> pass, FALSE --> fail

Details

This function is used as part of the validity-methods for SoilProfileCollection objects.

See Also

depths<-