FedData (version 2.0.8)

get_nhd_subregion: Download and crop data from a zipped HUC4 subregion of the National Hydrography Dataset.

Description

get_nhd_subregion returns a list of SpatialPolygonsDataFrames of the layers of the HUC4 subregion, within the specified template. If template is not provided, returns the entire HUC4 subregion.

Usage

get_nhd_subregion(template = NULL, area, res, raw.dir)

Arguments

template
A Raster* or Spatial* object to serve as a template for cropping.
area
A 4-character string indicating the HUC4 NHD subregion to download and crop.
res
A character string defining the resolution of the NHD to download. Either "medium" (the default), or "high".
raw.dir
A character string indicating where raw downloaded files should be put. The directory will be created if missing.

Value

A SpatialPolygonsDataFrame of the HUC4 regions within the specified template.