View source: R/get_SDA_coecoclass.R
get_SDA_coecoclass | R Documentation |
get_SDA_coecoclass()
retrieves ecological site information from the Soil
Data Access (SDA) database for a given set of map unit keys (mukeys). It
returns a data frame containing ecological site IDs, names, and associated
classification details, enabling users to link soil map units to ecological
site concepts used in land management and conservation planning.
get_SDA_coecoclass(
method = "None",
areasymbols = NULL,
mukeys = NULL,
WHERE = NULL,
query_string = FALSE,
ecoclasstypename = c("NRCS Rangeland Site", "NRCS Forestland Site"),
ecoclassref = "Ecological Site Description Database",
not_rated_value = "Not assigned",
miscellaneous_areas = TRUE,
include_minors = TRUE,
threshold = 0,
dsn = NULL
)
method |
aggregation method. One of: |
areasymbols |
vector of soil survey area symbols |
mukeys |
vector of map unit keys |
WHERE |
character containing SQL WHERE clause specified in terms of
fields in |
query_string |
Default: |
ecoclasstypename |
Default: |
ecoclassref |
Default: |
not_rated_value |
Default: |
miscellaneous_areas |
logical. Include miscellaneous areas (non-soil components)? |
include_minors |
logical. Include minor components? Default: |
threshold |
integer. Default: |
dsn |
Path to local SQLite database or a DBIConnection object. If |
When method="Dominant Condition"
an additional field
ecoclasspct_r
is returned in the result with the sum of comppct_r
that
have the dominant condition ecoclassid
. The component with the greatest
comppct_r
is returned for the component
and coecosite
level
information.
Note that if there are multiple coecoclasskey
per ecoclassid
there may
be more than one record per component.
# Basic usage with a vector of mukeys
get_SDA_coecoclass(mukeys = c(463994, 463995))
# Using a custom WHERE clause (all "range" sites in Hawaii)
get_SDA_coecoclass(WHERE = "ecoclassid LIKE 'R%' AND areasymbol LIKE 'HI%'")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.