fetch_soils_from_SOLUS100: Extract soil information from the 'SOLUS100' soil dataset

View source: R/extract_soils_NRCS_SOLUS100.R

fetch_soils_from_SOLUS100R Documentation

Extract soil information from the SOLUS100 soil dataset

Description

Extract soil information from the SOLUS100 soil dataset

Usage

fetch_soils_from_SOLUS100(
  x,
  vars,
  depths,
  stat,
  path = ".",
  fun = NULL,
  na.rm = TRUE,
  verbose = FALSE
)

Arguments

x

A numerical two-dimensional object (a matrix, array, or data.frame) with longitude/X, latitude/Y as columns; a sp::SpatialPoints object; or a terra::SpatVector object; or a sf object with a point geometry, i.e., an object with a class sf or sfc.

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

path

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

fun

A function. Summarizing gridcell values if more than one value is extracted per location. See terra::extract().

na.rm

A logical value. Passed to fun.

verbose

A logical value.

Notes

This is a function with minimal functionality; use extract_soils_SOLUS100() for a user-friendly interface.

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.


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