check_SOLUS100: Check local copy of 'SOLUS100'

View source: R/extract_soils_NRCS_SOLUS100.R

check_SOLUS100R Documentation

Check local copy of SOLUS100

Description

Check local copy of SOLUS100

Usage

check_SOLUS100(
  path = ".",
  vars = c("resdept_cm", "dbovendry", "fragvol", "sandtotal", "silttotal", "claytotal",
    "soc"),
  depths = depth_profile_SOLUS100(),
  stat = c("p", "l", "h", "rpi")
)

Arguments

path

A character string. The path to the local copy of SOLUS100.

vars

A vector of variable names. See variables_SOLUS100()

depths

Soil depths in centimeters from surface. See depth_profile_SOLUS100()

stat

A vector of character strings. See Nauman et al. 2024

References

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.

See Also

download_SOLUS100()

Examples

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)


DrylandEcology/rSW2exter documentation built on May 4, 2024, 10:53 p.m.