This function finds adjacent values to a horizon values at lagged distances.
hz_lag(
object,
lag = 1,
unit = "index",
idcol = "id",
depthcols = c("top", "bottom"),
order = FALSE
)
A data.frame
with lagged values.
a data.frame
integer: number of horizons to lag
character: lag units in index or depth.
character: column name of the pedon ID within the object.
a character vector of length 2 specifying the names of the horizon depths (e.g. c("top", "bottom")
).
logical: indicating whether or not to order the #'
Stephen Roecker
.
hz_dissolve()
, hz_intersect()
, hz_segment()