Learn R Programming

FedData (version 4.0.1)

get_ssurgo_study_area: Download and crop the spatial and tabular data for a SSURGO study area.

Description

get_ssurgo_study_area returns a named list of length 2:

  1. 'spatial': A Simple Feature of soil mapunits in the template, and

  2. 'tabular': A named list of data.frames with the SSURGO tabular data.

Usage

get_ssurgo_study_area(template = NULL, area, date, raw.dir)

Value

A SpatialPolygonsDataFrame of the SSURGO study areas within the specified template.

Arguments

template

An Simple Feature or SpatRaster object to serve as a template for cropping. If missing, whose study area is returned

area

A character string indicating the SSURGO study area to be downloaded.

date

A character string indicating the date of the most recent update to the SSURGO area for these data. This information may be gleaned from the SSURGO Inventory (get_ssurgo_inventory).

raw.dir

A character string indicating where raw downloaded files should be put. The directory will be created if missing.