siblings: Get "siblings" and "cousins" for a given soil series

View source: R/siblings.R

siblingsR Documentation

Get "siblings" and "cousins" for a given soil series

Description

Look up siblings and cousins for a given soil series from the current fiscal year SSURGO snapshot via SoilWeb.

The siblings of any given soil series are defined as those soil components (major and minor) that share a parent map unit with the named series (as a major component). Component names are filtered using a snapshot of the Soil Classification database to ensure that only valid soil series names are included. Cousins are siblings of siblings. Data are sourced from SoilWeb which maintains a copy of the current SSURGO snapshot. Visualizations of soil "siblings"-related concepts can be found in the "Sibling Summary" tab of Soil Data Explorer app: https://casoilresource.lawr.ucdavis.edu/sde/.

Additional resources:

Usage

siblings(s, only.major = FALSE, component.data = FALSE, cousins = FALSE)

Arguments

s

character vector, the name of a single soil series, case-insensitive.

only.major

logical, should only return siblings that are major components

component.data

logical, should component data for siblings (and optionally cousins) be returned?

cousins

logical, should siblings-of-siblings (cousins) be returned?

Value

A list containing:

  • sib: data.frame containing siblings, major component flag, and number of co-occurrences

  • sib.data: data.frame containing sibling component data (only when component.data = TRUE)

  • cousins: data.frame containing cousins, major component flag, and number of co-occurrences (only when cousins = TRUE)

  • cousin.data: data.frame containing cousin component data (only when ⁠cousins = TRUE, component.data = TRUE⁠)

Author(s)

D.E. Beaudette

References

O'Geen, A., Walkinshaw, M. and Beaudette, D. (2017), SoilWeb: A Multifaceted Interface to Soil Survey Information. Soil Science Society of America Journal, 81: 853-862. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.2136/sssaj2016.11.0386n")}

See Also

OSDquery, siblings, fetchOSD

Examples




    # basic usage
    x <- siblings('zook')
    x$sib
    
    # restrict to siblings that are major components
    # e.g. the most likely siblings
    x <- siblings('zook', only.major = TRUE)
    x$sib


ncss-tech/soilDB documentation built on May 5, 2024, 2:21 a.m.