Learn R Programming

SoilTaxonomy (version 0.2.7)

getTaxonSMR: Lookup Pre-calculated Soil Moisture Regimes by Taxon

Description

Helper function for using latest version of the Keys to Soil Taxonomy standard lookup table for soil moisture information.

Usage

getTaxonSMR(
  taxon = NULL,
  code = NULL,
  as.is = FALSE,
  droplevels = FALSE,
  ordered = TRUE
)

Value

character or factor (when as.is=FALSE) containing soil moisture regime labels extracted from 13th edition Keys to Soil Taxonomy taxa using extractSMR()

Arguments

taxon

character. Vector of taxon names (order to subgroup level). These values are converted to taxon "codes"

code

character. Vector of taxon codes.

as.is

logical. Return character labels rather than an (ordered) factor? Default: FALSE

droplevels

logical. Drop unused levels? Default: FALSE

ordered

logical. Create an ordinal factor? Default: TRUE

See Also

extractSMR() ST_SMR_13th

Examples

Run this code
getTaxonSMR(c("aridisols", "haploxeralfs", NA, "abruptic durixeralfs", "ustic haplocryalfs"))

Run the code above in your browser using DataLab