RGDrivers provides tools for analyzing stream networks,
including the construction of directed graphs from stream reaches, the
calculation of Link Magnitude (Shreve stream order) and D-LINK
(downstream reach order), and the export of results back to a spatial
file.
This vignette uses the small sample set of stream reaches included in
the package (inst/extdata/rede_exemplo.gpkg).
network <- vect(system.file("extdata", "rede_exemplo.gpkg", package = "RGDrivers"))
network
#> class : SpatVector
#> geometry : lines
#> dimensions : 3, 2 (geometries, attributes)
#> extent : 0, 3, 0, 3 (xmin, xmax, ymin, ymax)
#> source : rede_exemplo.gpkg
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
#> names : id jus
#> type : <num> <num>
#> values : 1 2
#> 2 3
#> 3 NA