View source: R/extract_soils_NRCS_SOLUS100.R
check_SOLUS100 | R Documentation |
SOLUS100
Check local copy of SOLUS100
check_SOLUS100(
path = ".",
vars = c("resdept_cm", "dbovendry", "fragvol", "sandtotal", "silttotal", "claytotal",
"soc"),
depths = depth_profile_SOLUS100(),
stat = c("p", "l", "h", "rpi")
)
path |
A character string. The path to the local copy of |
vars |
A vector of variable names. See |
depths |
Soil depths in centimeters from surface.
See |
stat |
A vector of character strings. See Nauman et al. 2024 |
Nauman, T. 2024.
Data from: Soil Landscapes of the United States 100-meter (SOLUS100
)
soil property maps project repository. Ag Data Commons.
https://doi.org/10.15482/USDA.ADC/25033856.V1.
download_SOLUS100()
dir_tmp <- tempdir()
has_solus <- check_SOLUS100(dir_tmp, vars = "resdept_cm")
## Not run:
if (curl::has_internet()) {
fns_solus <- download_SOLUS100(dir_tmp, vars = "resdept_cm")
files_solus <- file.path(dir_tmp, fns_solus)
terra::plot(terra::rast(files_solus))
has_solus <- check_SOLUS100(dir_tmp, vars = "resdept_cm")
unlink(files_solus) # clean up
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.