View source: R/get_SDA_NASIS_keys.R
| get_SDA_NASIS_key | R Documentation |
Query the Soil Data Access (SDA) API for NASIS record identifiers
(nasiscoiid, nasischiid) associated with map units, components, or
horizons. These identifiers are available in SDA beginning with NASIS version
7.4.3 and are useful for linking SDA data to NASIS backend records.
get_SDA_NASIS_key(
x,
by = "mukey",
include_chorizon = FALSE,
query_string = FALSE,
dsn = NULL
)
x |
A character vector of keys to match ( |
by |
A character string indicating the type of key provided in |
include_chorizon |
Logical. If |
query_string |
Logical. If |
dsn |
Optional. Path to a local database or connection object. If |
This function is intended for use with SDA (dsn = NULL). When used with
local SSURGO snapshots or other data sources, these columns may not be
present.
A data.frame containing mukey, cokey, chkey, nasiscoiid,
and nasischiid, or a character string if query_string = TRUE.
These NASIS record ID columns are only available via SDA after the October 1, 2025 refresh. They are not included in SSURGO snapshot data from Web Soil Survey unless manually added by the user.
## Not run:
# Get NASIS component IDs for a set of map unit keys
get_SDA_NASIS_key(c("469093"), by = "mukey")
# Get NASIS component and chorizon IDs for a set of map unit keys
get_SDA_NASIS_key(c("469093"), by = "mukey", include_chorizon = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.