| get_SDA_cosurfmorph {soilDB} | R Documentation |
Get Geomorphic/Surface Morphometry Data from Soil Data Access
Description
Get Geomorphic/Surface Morphometry Data from Soil Data Access or a local SSURGO data source and summarize by counts and proportions ("probabilities").
Usage
get_SDA_cosurfmorph(
table = c("cosurfmorphgc", "cosurfmorphhpp", "cosurfmorphss", "cosurfmorphmr"),
by = "compname",
areasymbols = NULL,
mukeys = NULL,
WHERE = NULL,
miscellaneous_areas = FALSE,
db = c("SSURGO", "STATSGO"),
dsn = NULL,
query_string = FALSE
)
Arguments
table |
Target table to summarize. Default: |
by |
Grouping variable. Default: |
areasymbols |
A vector of soil survey area symbols (e.g. |
mukeys |
A vector of map unit keys (e.g. |
WHERE |
WHERE clause added to SQL query. For example: |
miscellaneous_areas |
Include miscellaneous areas (non-soil components) in results? Default: |
db |
Either |
dsn |
Path to local SSURGO database SQLite database. Default |
query_string |
Return query instead of sending to Soil Data Access / local database. Default: |
Details
Default table="cosurfmorphgc" summarizes columns geomposmntn, geomposhill, geomposflats, and geompostrce.
table="cosurfmorphhpp" summarizes "hillslopeprof", table="cosurfmorphss" summarizes shapeacross and shapedown, and table="cosurfmorphmr" summarizes geomicrorelief.
Queries are a generalization of now-deprecated functions from sharpshootR package by Dylan Beaudette: geomPosMountainProbability(), geomPosHillProbability(), surfaceShapeProbability(), hillslopeProbability()
Similar summaries of SSURGO component surface morphometry data by series name can be found in fetchOSD(, extended=TRUE) or downloaded from https://github.com/ncss-tech/SoilWeb-data
Full component data including surface morphometry summaries at the "site" level can be obtained with fetchSDA().
Value
a data.frame containing the grouping variable (by) and tabular summaries of counts and proportions of geomorphic records.
Author(s)
Dylan E. Beaudette, Andrew G. Brown
See Also
fetchSDA() get_SDA_pmgroupname()
Examples
## Not run:
# Summarize by 3D geomorphic components by component name (default `by='compname'`)
get_SDA_cosurfmorph(WHERE = "areasymbol = 'CA630'")
# Whole Soil Survey Area summary (using `by = 'areasymbol'`)
get_SDA_cosurfmorph(by = 'areasymbol', WHERE = "areasymbol = 'CA630'")
# 2D Hillslope Position summary(using `table = 'cosurfmorphhpp'`)
get_SDA_cosurfmorph('cosurfmorphhpp', WHERE = "areasymbol = 'CA630'")
# Surface Shape summary (using `table = 'cosurfmorphss'`)
get_SDA_cosurfmorph('cosurfmorphss', WHERE = "areasymbol = 'CA630'")
# Microrelief summary (using `table = 'cosurfmorphmr'`)
get_SDA_cosurfmorph('cosurfmorphmr', WHERE = "areasymbol = 'CA630'")
## End(Not run)