download_nhdplushr: Download NHDPlus HiRes

View source: R/downloading_tools.R

download_nhdplushrR Documentation

Download NHDPlus HiRes

Description

Download NHDPlus HiRes

Usage

download_nhdplushr(nhd_dir, hu_list, download_files = TRUE)

Arguments

nhd_dir

character directory to save output into

hu_list

character vector of hydrologic region(s) to download. Use get_huc to find HU codes of interest. Accepts two digit and four digit codes.

download_files

boolean if FALSE, only URLs to files will be returned can be hu02s and/or hu04s

Value

character Paths to geodatabases created.

Examples


hu <- get_huc(sf::st_sfc(sf::st_point(c(-73, 42)), crs = 4326),
                            type = "huc08")

(hu <- substr(hu$huc8, 1, 2))

download_nhdplushr(tempdir(), c(hu, "0203"), download_files = FALSE)


nhdplusTools documentation built on Oct. 2, 2023, 5:06 p.m.