Learn R Programming

sharpshootR (version 1.8)

geomorphBySoilSeries-SSURGO: Geomorphic Position Probability via SDA

Description

Hillslope position probability estimates from the SDA query service (SSURGO)

Usage

hillslopeProbability(s, replaceNA=TRUE)
surfaceShapeProbability(s, replaceNA=TRUE)
geomPosHillProbability(s, replaceNA=TRUE)
geomPosMountainProbability(s, replaceNA=TRUE)

Arguments

s

a character vector of soil series names, automatically normalized to upper case

replaceNA

boolean: should missing classes be converted to probabilities of 0?

Value

A data.frame object with rows representing soil series, and columns representing probability estimates of that series occuring at specificed geomorphic positions or associated with a surface shape.

Details

These functions send a query to the SDA webservice. Further information on the SDA webservice and query examples can be found at http://sdmdataaccess.nrcs.usda.gov/QueryHelp.aspx

Examples

Run this code
# NOT RUN {
if(requireNamespace("curl") &
   curl::has_internet() &
   require(soilDB)) {
  
  # soil series of interest
s <- c('amador', 'peters', 'pentz', 'inks', 'auburn', 'dunstone', 'argonaut')

# generate hillslope probability table
hillslopeProbability(s)

# generate surface 2D shape probability table
surfaceShapeProbability(s)
  
}

# }

Run the code above in your browser using DataLab