View source: R/texture_to_code.R
texmod_to_code | R Documentation |
Replace NRCS textures or texture modifiers with codes.
texmod_to_code(tex, keep_unrecognized = F)
texture_to_code(tex, keep_unrecognized = F)
tex |
Vector of character strings |
keep_unrecognized |
True/False, default to False. If True, unrecognized strings will be retained. If False, unrecognized entries will be replaced with NA_character. |
A vector of the original length with identified entries changed to codes.
texture_strings <- c("sandy loam", "CLAY", "lerm")
texmod_strings <- c("gravelly", "STONY", "wet")
texture_to_code(texture_strings)
texture_to_code(texture_strings, keep_unrecognized = T)
texmod_to_code(texmod_strings)
texmod_to_code(texmod_strings, keep_unrecognized = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.