flagOverlappingHz: Flag perfectly overlapping horizons within a...

View source: R/flagOverlappingHz.R

flagOverlappingHzR Documentation

Flag perfectly overlapping horizons within a SoilProfileCollection

Description

Flag perfectly overlapping horizons within a SoilProfileCollection

Usage

flagOverlappingHz(x)

Arguments

x

a SoilProfileCollection object

Details

Horizons with NA depths can be flagged as overlapping. Consider finding these horizons with checkHzDepthLogic(byhz=TRUE) and removing or fixing them.

Value

logical vector with length (and order) matching the horizons of x

Author(s)

D.E. Beaudette, A.G. Brown

See Also

checkHzDepthLogic() fillHzGaps()

Examples


# two overlapping horizons
z <- data.frame(
  id = 'SPC',
  top = c(0, 25, 25, 50, 75, 100, 100),
  bottom = c(25, 50, 50, 75, 100, 125, 125)
)

# init SPC
depths(z) <- id ~ top + bottom

# flag perfectly overlapping horizons
z$.overlapFlag <- flagOverlappingHz(z)

# thematic sketches
plotSPC(z, color = '.overlapFlag', hz.depths = TRUE, 
depth.axis = FALSE, cex.names = 0.85)


aqp documentation built on Oct. 19, 2024, 5:06 p.m.