R/glomApply.R
trunc-SoilProfileCollection-method.Rd
trunc
is a wrapper method around glomApply
for the case when the same top and bottom depth is required for all profiles in a collection. In contrast, glomApply
allows for arbitrary functions to be run on each profile to calculate a unique set of depths.
# S4 method for SoilProfileCollection
trunc(x, z1, z2)
A SoilProfileCollection
Upper boundary
Lower boundary
A SoilProfileCollection truncated to interval [z1, z2]