Convert Horizon Distinctness Codes
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.
vector of distinctness codes to be converted to offsets
vector of unique distinctness codes
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
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.