https://github.com/cran/FedData
Raw File
Tip revision: 759bde3fec174ceb9f2a0d389bd801c768c6c128 authored by R. Kyle Bocinsky on 01 March 2017, 07:36:20 UTC
version 2.4.5
Tip revision: 759bde3
get_ssurgo_study_area.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSURGO_FUNCTIONS.R
\name{get_ssurgo_study_area}
\alias{get_ssurgo_study_area}
\title{Download and crop the spatial and tabular data for a SSURGO study area.}
\usage{
get_ssurgo_study_area(template = NULL, area, date, raw.dir)
}
\arguments{
\item{template}{A Raster* or Spatial* object to serve 
as a template for cropping. If missing, whose study area is returned}

\item{area}{A character string indicating the SSURGO study area to be downloaded.}

\item{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 (\code{\link{get_ssurgo_inventory}}).}

\item{raw.dir}{A character string indicating where raw downloaded files should be put.
The directory will be created if missing.}
}
\value{
A \code{SpatialPolygonsDataFrame} of the SSURGO study areas within
the specified \code{template}.
}
\description{
\code{get_ssurgo_study_area} returns a named list of length 2:
\enumerate{
\item 'spatial': A \code{SpatialPolygonsDataFrame} of soil mapunits 
in the template, and 
\item 'tabular': A named list of \code{\link{data.frame}s} with the SSURGO tabular data.
}
}
\keyword{internal}
back to top