https://github.com/cran/FedData
Raw File
Tip revision: 5938c5aab5300be4f7e109a67f9b87efaf327b05 authored by R. Kyle Bocinsky on 12 October 2016, 09:00:43 UTC
version 2.3.1
Tip revision: 5938c5a
get_nhd_subregion.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NHD_FUNCTIONS.R
\name{get_nhd_subregion}
\alias{get_nhd_subregion}
\title{Download and crop data from a zipped HUC4 subregion
of the National Hydrography Dataset.}
\usage{
get_nhd_subregion(template = NULL, area, raw.dir)
}
\arguments{
\item{template}{A Raster* or Spatial* object to serve 
as a template for cropping.}

\item{area}{A 4-character string indicating the HUC4 NHD subregion to download and crop.}

\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 HUC4 regions within
the specified \code{template}.
}
\description{
\code{get_nhd_subregion} returns a list of \code{SpatialPolygonsDataFrame}s of the layers of the HUC4 subregion,
 within the specified \code{template}. If template is not provided, returns the entire HUC4 subregion.
}
\keyword{internal}

back to top