View source: R/subset_nhdplus.R
subset_vpu | R Documentation |
Calls subset_rpu for all raster processing units for the requested vector processing unit.
subset_vpu(fline, vpu, include_null_rpuid = TRUE, run_make_standalone = TRUE)
fline |
sf data.frame NHD Flowlines with comid, pathlength, lengthkm, hydroseq, levelpathi, rpuid, vpuid, and arbolatesu (dnhydroseq is required if tocomid is not provided). |
vpu |
character e.g. "01" |
include_null_rpuid |
logical default TRUE. Note that there are some flowlines that may have a NULL rpuid but be included in the vector processing unit. |
run_make_standalone |
logical default TRUE should the run_make_standalone function be run on result? |
data.frame containing subset network
source(system.file("extdata/sample_data.R", package = "nhdplusTools"))
sample_flines <- sf::read_sf(sample_data, "NHDFlowline_Network")
subset_vpu(sample_flines, "07")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.