lookupTexture: Lookup Soil Texture Abbreviation Codes or Names

View source: R/lookupTexture.R

lookupTextureR Documentation

Lookup Soil Texture Abbreviation Codes or Names

Description

Lookup Soil Texture Abbreviation Codes or Names

Usage

lookupTexture(x, what = "names", dsn = NULL)

lookupTextureModifier(x, what = "names", dsn = NULL)

Arguments

x

a vector of soil texture/texture modifier abbreviation codes or names

what

either "names" (default) or "codes". The opposite of what x is.

dsn

passed to get_NASIS_metadata()

Value

a vector of soil texture abbreviation codes or names depending on whether input values are matched in the lookup table and the value of what. Unmatched values in x return NA.

Examples

x <- lookupTexture(c("loam", "bar", "sandy loam"), what = "codes")
x
lookupTexture(x, what = "names")

lookupTextureModifier("extremely bouldery")

brownag/NASIStools documentation built on Nov. 21, 2023, 11:34 a.m.