https://github.com/cran/FedData
Raw File
Tip revision: 781f93f0720f7fb19ac70db9c6073c69b6cb2e2b authored by R. Kyle Bocinsky on 28 November 2022, 07:00:02 UTC
version 3.0.1
Tip revision: 781f93f
get_nhd.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NHD_FUNCTIONS.R
\name{get_nhd}
\alias{get_nhd}
\title{Download and crop the National Hydrography Dataset.}
\usage{
get_nhd(
  template,
  label,
  nhdplus = FALSE,
  extraction.dir = paste0(tempdir(), "/FedData/"),
  force.redo = FALSE
)
}
\arguments{
\item{template}{A `Raster*`, `Spatial*`, or `sf` object to serve
as a template for cropping.}

\item{label}{A character string naming the study area.}

\item{nhdplus}{Extract data from the USGS NHDPlus High Resolution service (experimental)}

\item{extraction.dir}{A character string indicating where the extracted and cropped NHD data should be put.}

\item{force.redo}{If an extraction for this template and label already exists, should a new one be created?}
}
\value{
A list of `sf` collections extracted from the National Hydrography Dataset.
}
\description{
\code{get_nhd} returns a list of `sf` objects extracted
from the National Hydrography Dataset.
}
\examples{
\dontrun{
# Get the NHD (USA ONLY)
NHD <- get_nhd(
  template = FedData::meve,
  label = "meve"
)
NHD
NHD \%>\%
  plot_nhd(template = FedData::meve)
}
}
back to top