powered by
Download NHDPlus HiRes
download_nhdplushr(nhd_dir, hu_list, download_files = TRUE)
character Paths to geodatabases created.
character directory to save output into
character vector of hydrologic region(s) to download. Use get_huc8 to find HU codes of interest. Accepts two digit and four digit codes.
boolean if FALSE, only URLs to files will be returned can be hu02s and/or hu04s
# \donttest{ hu <- nhdplusTools::get_huc8(sf::st_sfc(sf::st_point(c(-73, 42)), crs = 4326)) (hu <- substr(hu$huc8, 1, 2)) download_nhdplushr(tempdir(), c(hu, "0203"), download_files = FALSE) # }
Run the code above in your browser using DataLab