View source: R/get_SDA_cosurfmorph.R
get_SDA_cosurfmorph | R Documentation |
Get Geomorphic/Surface Morphometry Data from Soil Data Access or a local SSURGO data source and summarize by counts and proportions ("probabilities").
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
)
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: |
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()
.
a data.frame
containing the grouping variable (by
) and tabular summaries of counts and proportions of geomorphic records.
Dylan E. Beaudette, Andrew G. Brown
fetchSDA()
get_SDA_pmgroupname()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.