FedData (version 2.0.8)

get_ssurgo: Download and crop data from the NRCS SSURGO soils database.

Description

This is an efficient method for spatially merging several different soil survey areas as well as merging their tabular data.

Usage

get_ssurgo(template, label, raw.dir = "./RAW/SSURGO/", extraction.dir = "./EXTRACTIONS/SSURGO/", force.redo = FALSE)

Arguments

template
A Raster* or Spatial* object to serve as a template for cropping; optionally, a vector of area names [e.g., c("IN087","IN088")] may be provided.
label
A character string naming the study area.
raw.dir
A character string indicating where raw downloaded files should be put. The directory will be created if missing. Defaults to "./RAW/SSURGO/".
extraction.dir
A character string indicating where the extracted and cropped SSURGO shapefiles should be put. The directory will be created if missing. Defaults to "./EXTRACTIONS/SSURGO/".
force.redo
If an extraction for this template and label already exists, should a new one be created? Defaults to FALSE.

Value

A named list containing the "spatial" and "tabular" data.

Details

get_ssurgo returns a named list of length 2:
  1. "spatial": A SpatialPolygonsDataFrame of soil mapunits in the template, and
  2. "tabular": A named list of data.frames with the SSURGO tabular data.