Generate a discretized vector of genetic horizons along a user-defined pattern.
unroll(top, bottom, prop, max_depth, bottom_padding_value = NA, strict = FALSE)
vector of upper horizon boundaries, must be an integer
vector of lower horizon boundaries, must be an integer
vector of some property to be "unrolled" over a regular sequence
maximum depth to which missing data is padded with NA
value to use when padding missing data
should horizons be strictly checked for self-consistency? defaults to FALSE
a vector of "unrolled" property values
This function is used internally by several higher-level components of the
aqp
package. Basic error checking is performed to make sure that
bottom and top horizon boundaries make sense. Note that the horizons should
be sorted according to depth before using this function. The
max_depth
argument is used to specify the maximum depth of profiles
within a collection, so that data from any profile shallower than this depth
is padded with NA.
https://casoilresource.lawr.ucdavis.edu/