This method is used by slab() for generating labels that assign IDs to layers in a SoilProfileCollection

genSlabLabels(
  slab.structure = 1,
  max.d = NULL,
  n.profiles = NULL,
  spc = NULL,
  diced = NULL,
  ...
)

Arguments

slab.structure

A user-defined slab thickness (defined by an integer), or user-defined structure (numeric vector). See details for slab().

max.d

Maximum depth

n.profiles

Number of profiles

spc

Optional: A SoilProfileCollection

diced

Optional: The dice()-ed horizon-level data.frame corresponding to spc

...

Additional arguments passed to dice() when spc is specified.

Value

factor. slab IDs, labels are the segment top and bottom depth separated by "-"

Details

The new routine used in aqp 2.0 requires that, at a minimum, the spc and slab.structure arguments be specified.

See also