genSlabLabels: Generate Labels for Slabs

View source: R/slab-utils.R

genSlabLabelsR Documentation

Generate Labels for Slabs

Description

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

Usage

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.

Details

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

Value

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

See Also

slab()


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