HzDepthLogicSubset: Subset 'SoilProfileCollection' Objects or Horizons via...

View source: R/HzDepthLogicSubset.R

HzDepthLogicSubsetR Documentation

Subset SoilProfileCollection Objects or Horizons via checkHzDepthLogic

Description

This function removes profiles or horizons from a SoilProfileCollection that are flagged as having invalid horizon depth logic by checkHzDepthLogic. Invalid profiles may be created when setting byhz = TRUE; use caution as some functions may not work properly in the presence of gaps. Consider using fillHzGaps to fill these gaps.

Usage

HzDepthLogicSubset(x, byhz = FALSE)

Arguments

x

a SoilProfileCollection object

byhz

logical, evaluate horizon depth logic at the horizon level (profile level if FALSE)

Value

a SoilProfileCollection object

Note

This function cannot identify (and remove) overlapping horizons when byhz = TRUE.


aqp documentation built on Sept. 8, 2023, 5:45 p.m.