| hzDistinctnessCodeToOffset {aqp} | R Documentation | 
This function accepts a vector of horizon distinctness codes, a look-up vector of codes, and a corresponding vector of vertical offsets. The defaults are based on USDA-NCSS field methods.
hzDistinctnessCodeToOffset(x, codes = c("A", "C", "G", "D"), offset = c(0.5, 1.5, 5, 10))
| x | vector of distinctness codes to be converted to offsets | 
| codes | vector of unique distinctness codes | 
| offset | vector of offsets associated with distinctness codes | 
Missing data (NA) or codes that are not defined in the ‘codes’ argument are returned as 0 offsets.
a vector of vertical offsets, with the same length as the number of distinctness codes passed to the function
D.E. Beaudette
http://www.nrcs.usda.gov/wps/portal/nrcs/detail/soils/ref/?cid=nrcs142p2_054184
data(sp1)
hzDistinctnessCodeToOffset(sp1$bound_distinct)
##  [1] 0.5 5.0 5.0 1.5 1.5 0.0 0.5 5.0 5.0 0.0 1.5 5.0 5.0 1.5 5.0 0.5 5.0
## [18] 5.0 0.5 0.0 1.5 1.5 0.5 0.0 1.5 5.0 5.0 1.5 0.0 0.0 0.0 0.0 0.0 0.0
## [35] 0.5 1.5 5.0 1.5 1.5 0.0 0.0 0.0 0.0 1.5 1.5 1.5 1.5 0.0 0.0 0.0 0.0
## [52] 0.5 1.5 1.5 1.5 1.5 0.0 0.0 0.0 0.0