Learn R Programming

aqp (version 1.25)

guessHzTexClName: Guess Horizon Texture Class Column Name

Description

This function is used to provide a texture class attribute column name to functions. It will use regular expressions to match "texcl" which is typically the texture of the fine earth fraction, without modifiers or in-lieu textures. Alternately, it will match "texture" for cases where "texcl" is absent (e.g. in NASIS Component Horizon).

Usage

guessHzTexClName(x)

Arguments

x

A SoilProfileCollection

Value

Character containing horizon texture class column name.

See Also

guessHzDesgnName, guessHzAttrName

Examples

Run this code
# NOT RUN {
a <- data.frame(id = 1, top = c(0,10), bottom=c(10,40), texture=c("A","Bw"))
depths(a) <- id ~ top + bottom

# store guess in metadata
hzdesgnname(a) <- guessHzTexClName(a)

# inspect result
hzdesgnname(a)

# }

Run the code above in your browser using DataLab