Description Usage Arguments Examples
View source: R/clean_drains_by_length.R
Clean Drain Segments by Length & Combine Co-located Segments
1 | clean_drains(drndf, min_seg_length = 1e-04, verbose = T)
|
drndf |
Output from |
min_seg_length |
Minimum allowed segment length (default: 1e-4) |
verbose |
T/F if information should be relayed through messages (default: True). |
1 2 3 4 5 6 7 8 9 10 11 12 | #-- Read in shapefiles
str <- read_sf(system.file("extdata", "straight_river.shp", package = "pbjr"))
vor <- read_sf(system.file("extdata", "straight_voronoi.shp", package = "pbjr"))
#-- Explode polyline
str <- line_explode(str)
#-- Create drndf
drndf <- calc_stream_drn(stream = stream, voronoi = vor)
#-- Clean up
drndf <- clean_drains(drndf, min_seg_length=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.